Why do we never have enough money?

Most of us can recognize this situation: the salary comes, we pay the bills, then a few unexpected expenses appear, and suddenly there is practically nothing left. How to escape this cycle?