These things took place as examples to keep us from craving evil things as they did.