Groan can be a verb or noun.
"giving a groan" is an idiom
John groaned when he lifted the weight.
John gave a groan when he saw the price of the car.
John groaned, "I can't see the show."
- For Teachers