Headlight switch

I must be missing something because pushing the spring in and removing the rod sounds like a pain in the *** to me compared to removing the knob. I'm not saying that my way is better because when I had to replace my switch I didn't even know about the springed button. When I got the switch out I saw it then and was wondering what it was for.