Consider a typical free Lagrange function $\mathcal{L}$ from quantum theory with global $U(1)$-symmetry ( e.g. $ \mathcal{L}= (\partial_\mu \psi)(\partial^\mu \psi^*) + k^2|\psi|^2 $ ) with respect to the action
$\psi \rightarrow e^{-i\theta}\psi$
on matter field $\psi$ for constant $\theta$. Then we have a well known cooking recipe how to "promote" this global symmetry to a local one:
$\psi \rightarrow e^{-i\theta(x)}\psi $
ie $\theta(x)$ is space dependent. The usual differential $\partial$ is going to be replaced by the covariant one $D:=\partial_\mu - iqA_\mu$ with respect the gauge bosons $ A_\mu$ ( morally the element from Lie algebra of $U(1)$) to make the resulting Lagrangian invariant wrt now the local symmetry.
Naive question: What is this procedure good for, ie what is the advantage to turn global symmetry to a local one? Is there a deeper reason why local symmetry is more interesting for further consideration of the system?
Note that the question is not about how to perform this passing from global to local but really why it is important, so essentially about the raison d'etre.