I didn't think it was just to protect from harsh dirt/grit/spray, but also that it will take the brunt of me cleaning dust specs off it and if I scratch it, I can throw it in the bin and buy a new one.
Maybe there are better options or maybe the lens glass in even cheap lenses is resistant enough to rough handed newbies using the corner of a shirt to clean them.
Besides, the fact they are popular makes them also cheap. Maybe I could buy an expensive dedicated lens protector that does not produce flares, but then it might cost the same as my lens and defeat the purpose.
These are valid points but . . .
Every filter has the potential to cause lens flare, although (up to a point) the degree of potential does depend on the design of the lens.
Take your typical "nifty fifty" which usually has the front element fairly deeply recessed, which means that, in effect, it has a pretty effective built-in lens hood. Put a filter over the top of that and the lens hood has gone, and there is now a much larger, totally flat surface that is much more prone to flare.
With some designs of lens (and especially wideangle and zoom lenses, the lens is hardly recessed at all and already has a very large surface area, exposed to the sun or other light sources. Putting a flat filter over the top of that introduces greater potential for flare, but the difference is less than with a recessed lens.
Using a lens hood can help a lot - IMO a lens hood is the most useful camera accessory there is, as well as being one of the cheapest and should always be used - but very few of them are designed for efficiency. The reason for this is that they are primarily designed to work with zoom lenses, they aren't deep enough to be efficient because they need to work at the wide end of the lens, and most have a "petal" design, again for wideangle lenses, which reduces their effectiveness even further. In a perfect world, we would all have a number of different lens hoods for use with different focal lengths of lens, but we don't
What I use for outdoor photography is a rubber lens hood of very substantial design. When I'm using a wideangle lens I simply collapse it to avoid vignetting and it still works, up to a point, and is better than a petal lens hood. And in the studio, where there's more time, I use an adjustable bellows lenshood that can be set to the length needed. And I don't use filters.