At rest, ligaments on the top of the paw naturally sheath the claws.
A cat exposes its claws by contracting digital flexor muscles in its legs, pulling taut the flexor tendons under the paw.