It is basically due to the inactivity or much less activity of your legs and lower body.It is a condition called "peripheral edema" and it also occurs in feet and legs.It is best that you start walking or exercise daily but after getting opinion from your doctor.