Yellow lines are installed primarily for safety reasons, such as improving visibility, maintaining traffic flow, or preventing parking in dangerous areas. They are not installed for convenience.