Originally I believe it was created to solve the problem of large interval gaps which many composers and singers didn’t like. You can read a little bit more detail about it here.
https://www.guitar-chords.org.uk/chord-theory/minor-key-theory.html
Lee Answered question August 27, 2021