Rock layers in order is basically natures calendar.
The highest layer is the newest formed layer While the deepest layer was the oldest and probably has been there from some time And everything in between goes accordingly
So putting rocks in order by age helps scientists better understand what was there before what and how the rocks changed over time.
Hope this helps! Brailiest is always appreciated if you feel its deserved! :)