Why is the unit light year invented?

Well, because we need to know the light year