Yellow jackets and bees are not the same.
Millions of years ago, wasps and bees were the same species.
No one knows why bees became vegetarian and started to make honey. Both are important garden pollinators.
Before I had honeybees, I had a healthy population of wasps pollinating my compact pear tree.