In my experience it's often (but definitely not always) the case that for new post-grad students the idea or general research direction often comes from the professor (especially if the research is funded by a grant proposal). Most of the heavy lifting is then done by the grad student with guidance and feedback from the professor. As the student matures they start to operate more independently.