"I don't see a real reason why electricity would cause mouse delay in the first place,"
- It won't. Not if you are referring to mains power, or the power from your machines power supply.
Inadequate power from the psu can cause a game to lag due to a drop in performance should the output of +12V rail not have adequate Amps,
or a drop in +12V output (or otherwise faulting) when under load, but that is not what is generally referred to as input lag.
- Because you said everything runs smoothly when you take your machine to your friends house, and assuming your used your
mouse\keyboard and PC, but used your friends monitor, the input lag at home may be due to your monitor (or TV ?)
having a high input latency (over 40ms, but less than 20ms is best with action games).
Using cable adapters or splitters can also induce lag.
[EDIT: ddusk filled in the other potentials in his post below. Wireless mice are far more prone to lag than wired mice even
when there is no interference, but when the base is placed near potential interference such as powerful speakers you are
far more likely to have input lag issues.
There is no mystery 'bad electricity' from the mains power you connect a machine to. ]
.