All my Apple devices switched themselves off overnight - eviltoast

Does anyone know why this might happen? I woke up this morning, my phone and my wife’s (who both share an account) had switched themselves off. Also my Ipad and IMac had. Has anyone had this happen and what does it mean?