Throughout history poor people were happy because they believed they were born to that life so they didn't have the stress or jealousy of believing life was unfair to them. If you read any old philosophy book it's all lessons about being happy with what you have.
Believing you can raise yourself up and improve your life is a relatively new phenomenon, and society stopping people doing that leads to unhappiness.