I have always like to view uni attendance as "personally mandatory" to attend lectures and seminars unless its something I cant avoid. I signed up for the degree and its on my timetable so its of my interest to attend, if I don't then that should be on my back, but I don't think it should be enforced attendance depending on the degree e.g. healthcare related etc like others have said. But you are an adult so you need to develop them skills for timekeeping and punctuality sure.
I also think there is wider benefits of attending, not just academic but the social element as well as wider skills, if you get into a habit of just attending where and when, relying on recorded lectures then its going to be more a shock when you enter the workplace and have to say be at a meeting at X time or be somewhere else as a specific time. I think recorded lectures should be used as a backup for the odd times you cannot make it or are late and missed content, and for revision purposes. I think if people want to rely purely on recorded lectures and not attend timetabled sessions then a distance learning degree may be more suited for them.
I think attendance should definitely be tracked though like others have said, for wellbeing reasons, on my undergraduate and Masters, we was a very close-knit course, and the very few times I was absent, I would get an email or text from my personal tutor usually the same day asking if I am okay, however I do have bit of a unique experience where I did apply to do a second masters in a totally different subject last January, so different faculty who have never met me, but due to issues with Admissions taking too long, I missed the first 3 weeks and I was advised by my personal tutor that I should withdraw and reapply due to missed content so I did.
Its only just before Christmas, so nearly a year on I get a very generic email saying I haven't logged in or attended and to let them know what's going on basically (turns out it was verbally agreed but the communication to withdraw me formally didn't happen) that kind of shocked me that it wasn't picked up earlier I haven't attended and let 2 semesters worth of modules go unsubmitted and failed as anything could have happened to me on a personal level, so I think it should be picked up a lot earlier when people just "go AWOL" from uni.