The problem is, it's hard to comprehensively test a person, so if you're not in the classroom it's hard to see that you're being presented with the material.
Yes, you can tell them that you're at home to reading it on your own, but how do they know the student really is?
Mandatory attendance is not great, but there just aren't really better options.