Kidney diseases such as nephritis, nephrotic syndrome and nephrosis affect the function of the kidneys. This causes the kidneys to lose a lot of protein in the urine, which in turn can cause severe swelling.