The whole purpose of the ballet at first was to tell the story of an opera, but in time ballet became separated from this origin to tell similar stories itself, and various choreographers brought their librettos to dance companies to visualise and show them to a growing audience.
Nowadays going to the ballet is a niche audience in social circles that appreciate the genre over others in many ways.