Now all these things happened unto them for ensamples: and they are written for our admonition, upon whom the ends of the world are come.
This verse means that these events happened as examples for us. They were recorded to teach us lessons, especially since we live in the last times.