Why don’t objects that are attached to a socket on a skeletal mesh move with animations?

I’m using a socket on a skeletal mesh and I attached an object to it, but the object doesn’t move with the hand, only the position of the character. How do I fix this?