Think about it. While it is turned on, the CPU, the RAM and other sensitive areas of the phone are still actively working. Now when a charger is plugged in, a source of unclean power is added. We all know no charger is perfect, and no charger can deliver perfectly clean 5V DC free from AC...