Get in Shape

What does the idiom “Get in Shape” mean?

Definition:

Exercise in order to improve one’s physical condition

For example:

“I’ve got to get in shape. All I do is sit and watch television. I’m gaining weight.”