Why is this? If true, why this problem is not appearing in private schools that pretty universally do not object to parents taking their kids away for vacations or family events as long as kids master the material.
The teacher needs to have a program of study with specific topics covered, recommended exercises for practice and required homework to check understanding for each. If a student masters the material why does anyone care if he skipped a week? And if the student does not know the material he should get a bad grade, whether he was in every class or not.
That is how the school worked where I grew up (Eastern Europe) and it seems vastly superior to the mess we have in the US today, where many public schools teach to the lowest common denominator, making capable kids bored at best and and a nuisance to the teacher at worst.
it's not that hard, if you commit to going to school, then just try to go and do vacations during school holidays
otherwise, just home school