Which is better? Why?

So, I'm just wondering...
How is it that miserable and honest is preferred over happy and dishonest?  If honesty leads to misery, how is that better?