Because they are attached to it.
muscle attachment to a joint helps that joint move in the correct direction, like your elbow...