For what it's worth, while this does hinder a legislator from voting as per the will of their constituents even where they are at odds with the party line, within the Indian political system there are so many special interest parties that differ from each other in minor details of policy. In theory, the will of constituents could have been made manifest by voting for the policy adjacent party instead.
Again, it's not a perfect system, but it's attempting to fix the obvious issues that arose in India.
You can ask other parliamentary systems the same questions. For example, the Australian Labor Party requires its members to pledge their support for the collective ui decisions of the caucus, which prohibits them from "crossing the floor" as well.
Just as importantly, the Anti-“Crossing the Floor” law was passed in 1985 by the Congress Party under the leadership of Rajiv Gandhi (Son of Indira Gandhi, Husband of Sonia Gandhi, and Father of Rahul Gandhi). India’s been functioning under that system for almost 40 years, and I doubt Rahul Gandhi and Congress Party will repeal that law when they come back into party. That’s because it’s their law. They wrote it.
Inn what way is this a functioning parliamentary system then?