Why Is Attendance Still Compulsory in Indian Education?

Why is attendance still given so much importance in Indian colleges? Shouldn't understanding and performance matter more than just being physically present? Also, with online resources and self-paced learning, this feels outdated. Is there a real reason for this, or is it just a random tradition?

myquals: NA