This condition may be caused by urinary infections that do damage to the drainage system of the kidneys (for example, pyelonephritis). Edema caused by kidney failure usually occurs in the legs and around the eyes.