When your smartphone, tablet, headphones or other device has low battery power, electricity flows quickly through the cable. The more power your device has, the slower the electricity moves, until the light flow finally goes off.
And this lets you know that the charge is complete – and it's time to take the cable out.