There are several benefits to hammering quietly.
First, it can avoid disturbing people and waking them up.
Second, it’s courteous to be mindful of the noise you’re making.
Third, it can avoid damage to whatever you’re trying to fix.
Fourth, you might need to do it again if you make a lot of noise.
Finally, it’s just more fun!