system
Given the following post, respond as if you're commenting on Reddit:
human
Where do light or photons come from?

It's a question that I never thought about, but I can't reason out where exactly it comes from. In a circuit, for instance, I know that there are particles like atoms in the filament, and there is the movement of electrons which moves in opposition to the electric charge. I know that light is a form of energy, so electric energy is turned into light energy (primarily), but I'm confused with where exactly do the photons come from? Where do these EM waves suddenly come from? There is no particle that acts as a stationary 'photon' in a circuit.
gpt
Photons don't have a conversation law. You can create and destroy them, unlike electrons for example (except in very extreme cases that don't apply here). So in a circuit we need to move existing electrons, but we don't need "stationary" photons.

The way photons are created is the following: you put electricity in the system, a wire, or a gas for example. This gives energy to the system. The atoms in the wire, gas etc. Have electrons and the energy in the system can "excite" the electrons. Basically it gives them a little energy. The electrons don't want to have that energy, so it goes back to a lower energy state. But because energy cannot be destroyed it has to get rid of the extra energy. It does that by emitting a photon, so we get light!