Topological Origin of Electromagnetic Energy Sinks