I feel like the existing answers, while mathematically correct, may be a bit much for someone new to topology. Let me try a less formal explanation why "The Möbius strip is equivalent (homeomorphic) to the set of non-oriented lines in the plane".
Consider the standard construction of a Möbius strip by gluing the vertical ends of a flat strip of paper of width $[0,2\pi)$ and height $(-1,1)$ "with a 180° twist".
Clearly you can specify any point on the strip uniquely by the "angle" $\theta\in [0,2\pi)$ and the "height" $x\in (-1,1)$; this is simply the parametrization of the paper strip before you glue it.
Similarly you can specify any line in the plane uniquely by an angle $\theta \in [0,\pi)$ (where does the line point?) and a height $(-\infty,\infty)$ (how far do we translate the line from the origin towards where it points?). This is what your $f$ does, except it does it "twice" by allowing $\theta \in [0,2\pi)$.
Note that $[0,\pi)$ and $(-\infty, \infty)$ are homeomorphic (can be stretched or shrunk in)to $[0,2\pi)$ and $(-1,1)$. Since they have the same parametrizations (up to homeomorphism) it seems the Möbius strip and the set of lines in the plane are really the same. However, to really be able to conclude that, we still need to talk about the "edges" of our parametrizations. To define the Möbius strip by gluing the edges of a strip means that we map the limiting angle $\theta\to2\pi$ to the same points as $\theta=0$ but with the heights $x\in(-1,1)$ inverted.
Is that property true for our parametrization of the lines too? Yes! The horizontal lines that you get for $\theta=0$ are exactly those that you get if you let $\theta\to\pi$, but the former diverge upwards as you increase the "height" parameter, while the latter diverge downwards.