''tunnel vision'' happens when you focus very hard on something in front of you. As a result, you lose your peripheral vision and can only see directly ahead.
Imagine being in a tunnel. All you can see is the light at the end.
So, when your vision ''tunnels'', it focuses only on what is in front.