Layers work to the degree that you don't need to be a subatomic particle physicist to write this comment.
There are good abstractions and bad ones, all with varying degrees of leakiness and sharp corners. The good ones definitionally prevent you from needing to understand much about what they're abstracting.
https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a...
Layers work to the degree that they are trivial, but we really only need them when they are non-trivial.