Why is standing stationary more painful for your legs than walking?

When you are walking, the muscles in your legs tend to squeeze the veins. This helps pump the blood back up to your heart countering the effects of gravity better than when you are just standing still. Answer: Better blood circulation due to periodic squishing of veins!