Get in Shape

What does the idiom “Get in Shape” mean?

Definition:

Undertake a program of physical conditioning; exercise regularly

For example:

“I gained a lot of weight over the holidays and never left the house. I really need to hit the gym and get in shape.”