Many times it's not the school.
In our secondary school (currently local authority, about to switch to academy) they have been excellent and accommodating of our DS who has disabilities due to lung issues. They set work online and when he is able he sits in bed, resting yet doing the work. He's doing very well, very high expectations for GCSE regardless of the time off.
However, Local Authority are annoying as hell. The school is asked periodically to send all attendance logs to them. Anyone under the magic 97% is looked at. So DS with sometimes as low as 75% is immediately red flagged.
The fact that he has additional needs is not recognised by them, despite the school receiving an email from them as he has been flagged and answering, no concerns, he has issues, we are aware.
Then, I get some clipboard warrior, with no medical training, no SEN knowledge, nothing at all but a bean counter on the phone. I get patronised to the hilt. Have to bite my tongue from saying f off.
The last one was so utterly rude. I pointed out that, considering how quickly Covid spread in schools due to the constant barrage of 97% attendance or else, you would think we had learned from that. He wouldn't be off as often if people kept their kids home with chest infections.
She said she "didn't agree" and he could "just go on with a cough". I asked did she have any knowledge of COPD, Restricted Airway Syndrome or anything of that nature. She confirmed that no, it's "just asthma though isn't it with a fancy name?"
How I didn't put the phone down I don't know. I explained that no it really isn't. That he gets so tired from being unable to breathe properly that he cannot "just come to school". That he has been blue lighted to hospital a number of times.
She still didn't get it, threatened a criminal record and a fine for every day he has had off. It's like the more stupid she felt she looked, the nastier she got. So I said "well, let me know if you find a magic wand to cure his illnesses that the NHS and many leading UK lung experts have yet to find and I will listen to your threats with interest". Then I put the phone down and swore very loudly.
So yes, schools would like to set targets but it's the DofE and government ultimately