You are irritated by the behaviour of others.
It frustrates you..
And they don’t even realise it.

So to teach them a lesson, you do the same thing to them.
Only, that it does not change them.
They do not see their fault through your actions.
There now remains no difference between them and you. 

“Now you know how it feels” is almost always the worst way to teach someone a lesson.