The difference being that in those cases, it wasn't the police trying to entice a passerby into committing a crime of opportunity.
The best example I can give of entrapment would be a situation where you have no criminal record and your are unknown to the police for any criminal propensities. You are minding your own business and someone approaches you and says something to the effect that he has some stolen Rolex watches and he would sell you one cheap. You take a chance and buy one and oops - it is an undercover operation. This is entrapment because it was the police who initiated the transaction.
On the other hand, you see someone you believe is selling stolen watches. You ask him if they are stolen and he says yes and you decide to purchase one anyway. OOPS! It's an undercover operation but you have no defense because you initiated the transaction.