A swollen leg is a sign of fluid in your leg that may be caused due to bad circulation. When you elevate your legs higher than the heart, the fluid in your leg will tend to move towards your heart due to the gravitational force. This ultimately relieves the swelling and pain.