I would be inclined to agree with Tamsin that it is probably something to do with association, but I would guess this applies more to wild buns who come into contact with wild plants on a more frequent basis. A domestic bun probably wont of experienced all there is to offer so I don't see how they could know it was bad for them.
By the same token I also read that some people believe wild animals learn to self medicate themselves using plants.