When a player joins a server, everything that happened during the time offline queued on connecting to the server
Joining the server caused all events during the time offline to queue upon connection to the server. This includes lightning strikes causing fires everywhere, hoards of pigmen bursting out of a portal, and skeleton traps.