Well of course it is illegal, you just don't want to get caught, and this allows you to have plausible deniability.
it's like if law enforcement uses a legally questionable tactic to get information about someone. Then, with the help of that illegally obtained knowledge, they can go and re-create it (along with a legal paper trail) via other perfectly legal means.
Seems that it would make detecting it more difficult