@tim Ok, let's be more precise.
Especially the Austrian school system (which I have personal experience with as a student and a parent), does not let you skip history classes. Why? Because it has basically fixed class schedules. No choosing subjects (beyond perhaps 2nd/3rd foreign languages). But if you choose to attend that school, at a certain age point you do have a choice of 1-n types of curricula and that's it.
And very few let you skip history. It's basically not optional.