The good ended happily, and the bad unhappily. That is what fiction means.
There are only two tragedies in life: one is not getting what one wants, and the other is getting it.