The machine converts gravitational potential energy to electromagnetic radiation. People generate the gravitational potential energy by lifting the weight using kinetic energy, which was likewise created by converting chemical energy.
It's easier just to say "Gravity" because, without gravity, it wouldn't work with its inanimate weight.