As I now know, my piano teacher, and other piano teachers who teach scales, were accomplishing much more than just getting our fingers moving. I didn’t ask why– I just assumed it was a warm up, like running laps before gym class.
When I studied piano as a child, every lesson and practice session began with scales.