Why should it be illegal?
It’s perfectly legal to photograph strangers in public. You’re in public you have no reasonable expectation of privacy.
I don’t see people assaulting CCTV cameras for instance.
Sure some weirdos might I use it for nefarious reasons but if it didn’t exist they would still be weirdos using something else.