If I were to create a hostile environment for a fellow employee, where I am employed, it would be ME looking for another job.
As it should be.
You're right. For some reason, it never works out that way.
NOT-- if::
(A) you were a "favorite" of the boss, or management, or,
(B) the management already "had it in" for the other person anyway, or,
(c) not if part of the management was in on the prank or harassment with you.
In such a case, the VICTIM is the one who is blamed and usually left with no choice but to leave.
There's a guy at my company who thinks I've created a hostile work environment for him because I keep pointing out his technical mistakes before our employer invests millions in stupid or half-baked programs.