Why did the man hit his hand with a hammer?

Why did the man hit his hand with a hammer?