Gauge theory Updated +Created
The term and idea was first introduced initialized by Hermann Weyl when he was working on combining electromagnetism and general relativity to formulate Maxwell's equations in curved spacetime in 1918 and published as Gravity and electricity by Hermann Weyl (1918). Based on perception that symmetry implies charge conservation. The same idea was later adapted for quantum electrodynamics, a context in which is has even more impact.
What does it mean that photons are force carriers for electromagnetism? Updated +Created
TODO find/create decent answer.
I think the best answer is something along:
A basic non-precise intuition is that a good model of reality is that electrons do not "interact with one another directly via the electromagnetic field".
A better model happens to be the quantum field theory view that the electromagnetic field interacts with the photon field but not directly with itself, and then the photon field interacts with parts of the electromagnetic field further away.
The more precise statement is that the photon field is a gauge field of the electromagnetic force under local U(1) symmetry, which is described by a Lie group. TODO understand.
This idea was first applied in general relativity, where Einstein understood that the "force of gravity" can be understood just in terms of symmetry and curvature of space. This was later applied o quantum electrodynamics and the entire Standard Model.
Bibliography: