Why do PhD students do research for other people’s research ideas?
If they want to help, it implies that they are interested. Multiple people can work on research projects and get a benefit from them. 

I've helped on numerous projects and ended up getting a name on the resulting research paper. I wasn't able to use that research in my PhD thesis, but any job applications look a lot stronger as I have experience in a good variety of projects.