Why AU and light-years are used for different scales
Astronomical units were designed around the solar system. One AU is the defined nominal distance from Earth to the Sun, so it gives an immediately readable scale for planetary orbits, comet paths, and inner-system geometry.
Light-years and parsecs are more practical once the distance becomes interstellar. At that scale, a value measured in kilometres or miles becomes too large to read comfortably, and AU counts quickly turn into long strings of digits.