Lymph flow blocked
There is fluid in your body called lymph fluid that is constantly moving from one place to another. If something upstream is blocked, it can no longer flow adequately and the body tissue upstream accumulates and that part of your body swells.
So if the calf/shin is swollen, everything past that part of the leg will accumulate fluid. Elevate leg will help some, as will gentle massage