Why do we use gauges in Maxwell equation?

First, the gauge invariance means that the solutions $A_\mu(x^\alpha)$ are not unique. For every solution, the gauge transformations of it are solutions, too. That may be a problem because sometimes we want to have specific values of $A_\mu(x^\alpha)$ that answer a physical question.

Second, we sometimes gauge fix because the equations simplify. For example, when we discuss radiation (and antennas), even in classical electromagnetism, gauge-fixing may conveniently bring Maxwell's equations to the form $\square A^\mu = j^\mu$ which may be solved like other equations with the box operator.

Third, most importantly, in quantum field theory, gauge invariance means that some polarizations of $A_\mu$ create particle states with zero norm. Those mean that the differential operator as a matrix $M_{\mu\nu}$ acting on $A_\lambda$ is not invertible etc. Gauge-fixing gives a nonzero norm to such states, makes the matrices invertible etc., but we must still remember to deal with the unphysical (time-like and longitudinal) polarizations of the photon at the end. It's probably not a good idea to try to explain these things outside the context of the quantization of the electromagnetic field. One learns those things simultaneously with other issues of the quantization of the electromagnetic field. One doesn't need to know in advance – and in general, cannot know in advance – all the situations in which a procedure such as gauge-fixing may be helpful. But the list above is enough to understand that it is sometimes helpful.


The problem is that they have too many solutions if the gauge is not fixed.

Imagine you have some initial values, and want to solve it on the computer. Then you have to solve the equations for the next time step given the values for the previous one. But you have to compute the values for, say, four variables but have only three equations. You somehow have to tell the computer what to do, what to choose among the many solutions which are allowed by the equations. You choose a gauge condition, and obtain equations which have only a single solution, which you can compute.

Once you have computed one solution, you can later compute a lot of other ones, which do not fulfill you gauge condition. Choose a completely arbitrary gauge transformation and apply it, that's all. The result will be another solution of the original equations without gauge condition. (But there would be no point of really doing this, this is simply for understanding the point).