Well. This is actually a good question, where one can deep-dive into how flashlights work 
Back in the incandescent days flashlights usually only had one mode - either on or off. So they had a simple on/off clicky switch in the tailcap.
Then LEDs came, and things stayed that way for a while.
But people realized, since you need electronics to regulate the LEDs and keep them from frying anyway, why not make them controlled brightness. Also, LEDs marked a huge jump in brightness, so suddenly flashlights could be too bright for many occasions. They needed a way to control brightness with the button.
And suddenly the simple on-off switches were a problem. How do you control brightness with a switch that can do only on and off?
Companies found 2/3 solutions:
One: The light can discern between being turned off just for a split second, and being turned off for longer, and interpret the short ones as “he wants to change brightness”. Convoy mainly does this until today, with a single clicky switch in the tailcap. Very robust and simple concept, easy to understand and use, but limited in terms of features.
Two: Keep the electronics always powered on, and have a digital push button where the driver can discern short and long presses, multiple fast taps etc and turn them into whatever the software wants. This gives you a lot more freedom, but has a problem: The battery tube of the light is already needed to get the negative pole towards the front of the light. How do you also get the digital button signal to the front? So multiple solutions were born, mainly either putting the button in the front (where the driver is), or putting the driver in the back where the button is (bit of a pain from an engineering perspective), or use 2 battery tubes inside one another, where one is for the button and one for power (for example: Sofirn SC33, Lumintop FW series, Wurkkos TS10 series, and many others).
Three: Have one digital button in the front to change brightness, AND an additional clicky style switch in the back, just to turn on/off. Many tactical torches use this and it is pretty cool.