How do ESC’s work

Ever since I got my board I always wondered how the ESC receives power from the battery without any wires. I know this is probably a stupid question for a lot of people on this subreddit but can someone please explain how that works?