Move your leg about so that it moves in a complete circle.
Which part of your leg is moving? It should be the whole leg.
The whole leg turns in a ball and socket, so it can move in any direction.
Now hold your thigh still and see how much you can move your lower leg.
Your lower leg is attached to your upper leg by your knee. Do you think this is a ball and socket joint, too?