Do you really think a highly educated indian male with a masters degree already and applying to a German university for a PhD and probably to stay if accepted is a likely person that supports all the rape that happens in india? So far my experience in Germany is that the Indian students I have met say that the rape culture is evil and they need to find a way to fix it but they have no idea how to do it.
An Indian with a German PhD would end up being a highly productive member of society for any of the EU countries and countries like Germany actively make it easy for people with advanced degrees to get in and find jobs.
In the end the view is definitely racism and unwarranted.
However if would NOT recommend that any woman actually go to India since you would not exactly be around the best at brightest that way.