How to zoom on selection?

That doesn’t work for me…
In my case, by pressing ‘F’ it actually zoom out the selected object.
What’s going on?

In the reference image, the view after I pressed F