What is the meaning of [Life begins at forty]

A person truly starts enjoying life after forty as a result of accumulated skills and wisdom.

Example: X: I’m turning 40 next month. Y: You look glum. You should instead be cheerful, after all life begins at forty.