T hese things show us something. They teach us not to want things that are bad for us like those people did.
Now these things happened as examples for us, so that we would not crave evil things as they also craved.