State of flow
It will have happened a few times. When you got immersed in an activity completely such that you forget everything else. This is called the state of flow.