Have you noticed that whenever the battery door or the memory card door is opened, Canon cameras will automatically turn OFF?
It's because the camera have detector switches on these doors. It's a way to protect the camera when you change battery or memory card.
But if you change the lens, the camera is remains ON. It means no protection required when changing lens