Good question... Ragging in this form mostly happens in SriLanka, India, Bangladesh, Nepal, Pakistan etc. Although ragging was made an offence which carries possible imprisonment, it's rarely enforced.
Sadly sometimes this results in psychological/emotional/physical damage which can be long...