It is because the heat causes the blood vessels to dilate, so body fluid moves into the hands or legs by gravity, which can lead to swelling.