For one, they allow us to look at music within a given structure e.g. scales are organized sets of notes that work together, as opposed to the chromatic scale which is just a complete list of notes. Scales are also foundational in terms of developing an understanding of melodic composition when writing riffs and/or solos. Practicing scales also helps develop dexterity and master techniques such as alternate picking.