Law, ethics, and morality aren't exactly the same thing, but the former is based on the latter two. The fact that people for decades have not morally or ethically equated capturing, profiling, and modeling to thievery is why there also isn't a law against it anywhere in the world (to my knowledge).
The fact that it's illegal to pirate software nearly everywhere in the world as well also lines up to the moral and ethical compass of the people making those laws. They're not going to say "well, we think it's fucking swell to steal other people's hard work. But let's make it illegal anyway."