Original: They are found on every continent except Antarctica, in every habitat on the planet that contains insect-pollinated flowering plants.
Simplified: The switch from insect prey to pollen may have resulted from the capture of prey insects that were covered with pollen when they were fed to the wasp larvae.