usually they do that when they want to get out of something, they pooped or the substrate is too dirty or something is off. or they're really mad but in that case they don't do it constantly.