OnGUI uses an intermediate mode system. That means that OnGUI will fire twice per event (one layout and one for the actual event). Which can end up being even more times per key press if a repaint is involved.
The point of Event.current is to figure out which call you are in. Otherwise any code you execute will happen multiple times, which you normally don’t want.
This video is useful if you want to get deeper into intermediate mode GUI.