This story is about true love which transforms the beast into a prince. In real life, not only fairy tales, every person we consider to be a soul mate is a beautiful prince or princess.
The fairytale has a happy ending because the great love between the beauty and the beast was real and when the beauty declared the love for the beast he transformed into a beautiful prince.