These are short spikes of greater voltage coming through electrical wires and into connected devices. They most commonly occur due to faulty wiring, lightning spikes or when electricity is restored after an outage.
Modern electronics are very sensitive and can be damaged by surges to the point that they break entirely. You can avoid this kind of damage by purchasing a surge protector that you plug into your plug point, and then you insert your device cables into the protector.