Physics is applied Maths, of course they build on each other. History and historical knowledge builds on other things, geography most obviously, but primarily on itself. It’s easier to learn and remember history if you already know some. But having studied history it’s quite obvious that at an undergraduate level it builds on itself much, much less than something like Math or Physics. The degree to which upper level courses depend on lower level courses is minimal.
Different fields differ in how much they are built on mental models and how much they’re just a grab bag of connected facts you have to know and learn. Biology has more disconnected you just need to know it stuff than Chemistry.
I think you're reading a lot more into my comment than what's there. I'm not claiming that math classes have a completely linear dependency chain, nor am I saying that no other subjects have classes with meaningful dependencies, and I'm especially not claiming anything about graduate level course work in any subject.
Organic chemistry is not an elementary school course. Science taught in grade school usually has few inter-dependencies because it aims to cover a very broad range of topics at a very basic level. Ditto history.
If you sleep through algebra, you can't do calculus, period.