The right side of your heart
accepts blood returning from the extremities.
If it can't keep up, blood starts to back up in the extremities and causes swelling. Think of a basement pump. If its not powerful enough to keep up with the water seeping in, the basement will flood.