
Dota 2 uses terrain height in a unique way: depending on the distance, it can cause attacks to miss, provide a vision advantage, or in this case, trap an enemy player on a cliff for a long, long time.
Source: Kotaku – Dota 2 Player Gets Put In Cliff Timeout By Enemy Team