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 were our examples, to the intent we should not lust after evil things, as they also lusted.