"Died when they died" just means they all died at different points in physical time, like Boone and Shannon died first, but Hurley and Ben died presumably centuries later after being guardians of the island. The afterlife they all end up in is outside of time though so that's why they all seem to be there…