You do not need a wire to transfer electrical energy. You do need a wire to harness electrical energy and turn it into something else (e.g. light).
Derek posted a video on his Veritasium channel about the big misconception about electricity. You don’t have to watch it, as I will summarize it below, but I highly recommend you to.