I'm not as opposed to Hanon as others here seem to be (every teacher I've ever had assigned Hanon). With scales, there is so much theory being reinforced, which is the primary reason I assign scales. Knowing scales in all 24 keys helps to play pieces in all 24 keys, because you are already familiar with which groups of flats or sharps go together. Also, because scale runs (or portions thereof) commonly appear in pieces, those passages are quite easy when scales are already thoroughly mastered. In conjunction with playing scales, my students also play the chord cadences for each key, which is also valuable in playing pieces, as the primary harmonies of each key are already familiar.I think there is technical value in playing scales as well.