This is exactly what I put on last week's thread on this (former teacher), discussing causes and solutions:
It's a very complicated situation and I don't think there's a one size fits all solution.
I feel like presenteeism is pointless when we are in an age where we could have work sent home for children.
The big barrier to that is the burden on individual teachers.
If there was a scheme of work developed specifically for home learning to tie into the school's national curriculum (something a lot of homeschooling curricula don't follow) that could be used alongside the existing SoW, then they could just download the right lesson activities and send them to the child to do.
But there isn't a scheme of work like that, and even if there was, what schools are going to be able to pay for another scheme of work when half of them can't afford to update their current school-based ones as often as they'd like!
On the other hand, sending work home doesn't work for kids who don't see the point of school. And I can see where they're coming from as well. Education used to be the key to a good job/career. Nowadays, you can fail as much as you want during your school years and you can still get a job and become an NHS trust manager in 20 years! You can become a social media star and the barrier to accessing this is nothing like the barrier to getting into film/TV. A lot of kids will know at least one social media success story in their own school, even if that success isn't particularly great in adult terms. The job market isn't what it was even 10 years ago. Qualifications are largely meaningless for most career paths. Then people keep saying the environment means the planet is doomed and that AI is going to take everyone's jobs, and kids internalise this stuff and of course they don't see the point in going into school. Of course they're anxious. There's a lot to be anxious about in the world as it is presented to them by the news etc.
If we want kids to care about something as trivial as school we need to dial down all the serious shit and doom mongering and disaster porn (aka "news") on the TV and let them have their childhoods back. They're little adults now, with the pressure to do something big, and school is the waste of time in their way stopping them from doing that.
If the most disadvantaged ones had enough money to eat properly their brains would function better and they would make better decisions (and actually be able to learn). It's not the children's faults that their parents aren't in work or are low earners, and yet they're the ones who are being penalised when their parents' benefits get cut off for spurrious reasons or their parents' work hours are suddenly given to someone else.
And if we want long term sick kids (including serious MH) to go to school we need to fund the NHS correctly and give them meaningful treatment that actually helps them instead of box ticking appointments with someone with no power to actually help them get functional.
Just like in the 1820s when school became mandatory in the first place, adultification of children and pressures on them due to big problems is the main issue, augmented by lack of acceptable medical care.
Targeting individual schools or children doesn't solve the societal problems underlying everything.