Because, at least in some jurisdictions, this is regarded as soliciting illegal behaviour.
If they stand there, looking like a drug dealer, and you ask… all good.
If they ask you if you want coke, entrapment.
I'm not sure it's as cut and dry as that, but the gist is "would you have committed the crime regardless of the actor's behavior."