This is a fundamental principle in geology called the Law of Superposition. It states that in undisturbed rock sequences, the oldest layers will be at the bottom, and the youngest layers will be on top.
Think of it like a stack of pancakes. The first pancake you put on the plate is at the bottom, and the last one is on top. The same applies to sedimentary rock layers.