Graham Greene said: "Point me out the happy man and I will point you out either egotism, selfishness, evil - or else an absolute ignorance."
This world isn't built for maximising happiness of humans, this is true whether you follow scientific rationale or religious faith. When you pursue happiness, you are working against the system. There in nothing wrong with it, however it does tell you why Graham Greene concluded the above.