The knee is capable of swelling to an alarming size, and it is only when you understand the anatomy does the reason become clear.
Enclosing the articulating part of the knee joint is a water-tight capsule made of a strong fibrous material lined on the inside with a thin layer of secretory cells that produce the joint fluid that helps to lubricate the inside of the knee. This inner lining is called the synovium, and despite being a thin layer, it is arranged in folds, so that the surface area available for fluid secretion is actually quite large.
So if there is an abnormal amount of fluid in the joint, these folds will be taken up and the capsule will fill up and the knee will appear swollen.
Abnormal quantities of fluid in the joint can be -
Effusion
Normally the synovial cells secrete just enough fluid to lubricate the cartilage of the bones and the menisci - neither have a proper blood supply. But if anything irritates the inside of the joint, then these cells over-secrete and the capsule can become filled with a straw-coloured fluid, which is called an effusion. The capsule normally has slack folds, but now the folds are taken up and the capsule expands like a little balloon.
Haemarthrosis
Sometimes it it not joint fluid that is filling the capsule - but blood. A collection of blood within the capsule is called haemarthrosis. The difference between the synovial fluid and the blood, is that the latter is much more irritant and can cause the swollen joint to be painful. If the joint is briskly filled with blood because of active bleeding from a blood vessel then it can be very tense and excruciatingly painful, requiring a visit to the emergency depart for the fluid to be syringed out.
Pitting Oedema
The knee can also be swollen from fluid outside of the joint if fluid is leaking out of the capsule and into the soft tissues around it. This might happen if the capsule is torn. In this case the swelling might be boggy, and a finger pushed into the area for a few seconds might leave an impression.
Baker's Cyst
On occasion, raised fluid pressure within the capsule can reveal itself via a Baker's Cyst - a small and painful cystic swelling in the crease at the back of the knee. This is a herniation of the joint capsule through a weak area at the back of the knee, usually attributed to increased joint pressure, such as you might get from knee arthritis.