What if somebody is arrested and happens to have a very convenient data set on a lot of people, such as data used for marketing purposes. Is it okay if those people are stopped and searched on the basis that somebody else held data about them and the police have supposed that 10% of the clients are suspected of criminality?
Normally there is supposed to be evidence that the crime took place before an investigation can begin.
If law enforcement starts with the evidence and then look for the crime that fits it, that's something different.