Most objects in space are so far away, that using a relatively small unit of distance, such as an astronomical unit, is not practical. Instead, astronomers measure distances to objects which are outside our solar system in light-years.
Source: coolcosmos.ipac.caltech.edu/cosmic_classroom/cosmic_reference/distance.html