No doubt schools are no longer just a center of education but one of the many commercial institutes. Many people are investing on educational institutions and turning them into a profitable ventures. But to say that they think only about profit and not about education or other welfare of students is wrong.
Those who manage and own educational institutions knows that if they neglect the welfare of students, they won't ve much students in future, so it would be unwise to be negligent
Most schools have parent's- teachers association or hold parents teacher's meeting which ensures that some guidelines are followed.
If I am not mistaken in most of the places in India there are students organization who are quite vocals about the issues related to students welfare, so I doubt if the school authority can get away by ignoring the welfare of students.