That might be an unintended benefit, but no, the rationale is pretty sound.
Basically Ukraine identified the local IP ranges and mass scanned them for open webcams for intelligence gathering and scouting purposes.
It's pretty ingenious and I am left wondering if this is the first time this tactic has been deployed at scale during a conventional war.
Regardless, I expect this is one of those things that we will see moving forward in any future conventional wars, including governments requesting their civilians turn off their IP cameras, or otherwise forcing them to.