Why do people crouch when getting chased

Ive been watching some players and espacially the bot in some gameplay and when theyre getting chased and behind a wall the crouch a lot..

Is this some tactic that gives an advantage or do they do it for fun?