Hitting the enemy against a wall caused them to be boosted upwards.
As explained by the man the legend Technoblade(R.I.P) because of the Pythagorean theorem it is easier for you to hit their feet than them to hit your head because a leg of a right triangle is shorter than it's hypotenuse.
A^2+B^2=C^2