If you have a newer iPad and a newer MacBook, and position the iPad directly to the right of the MacBook (so the two touch each other), it is likely that the MacBook will go to sleep. This is because newer iPads have magnets along the left side (used by the iPad cover), and newer MacBooks have magnetic sensors along the right side for determining if the display is opened or closed. Other magnets of course can also trigger a MacBook to go to sleep, but it’s quite feasible for users to set down their iPad next to MacBook. When this sleep occurs, the MacBook will not wake up until the magnet is removed, and therefore this can mimic the MacBook randomly powering down.