I think if I squint and turn my head a bit I can almost maybe see a semblance of a point to what you're trying to say.... but it doesn't really hold up for me at all.
Learning isn't fun doesn't really relate to the fact that bodily functions exist. If a kid is well but going to the restroom for 30 minutes every class period and on their phone etc just skipping.... I guess punish that as if it were skipping? You can't just assume negative intent across the entire student body when it comes to checks notes pooping in a toilet like a person?