Red-eared slider turtle banging shell on glass?

Why is he banging his shell on the glass? He only does it on the one corner of the tank, and there are scratch marks on the glass from his claws.