the rock: This is a sarcastic metaphor. A metaphor compares one thing to another in order to make a point.
Here, rocks refers to pagan gods. The image highlights their impotence (lack of power). Unlike the Lord, these gods cannot act or save. (see 32:31).