In the lecture on Noether's theorem and the Lagrange formulation of classical field theories, my professor wrote
A symmetry is a field variation that maps solutions to solutions, which is true if the action does not change under the variation. Because the Euler-Lagrange equations do not change if we add a surface term to the action, a symmetry can also be obtained by adding a surface term $$ \mathcal{L}(x) \mapsto \mathcal{L}(x) + \alpha\partial_\mu \mathcal{J}^\mu(x) $$
$\mathcal{L}$ is the Lagrange density and $\alpha$ the infinitesimal parameter of the variation.
I understand that if we add a surface term to $\mathcal{L}$, then we can use the divergence theorem to convert it to $\alpha\partial_\mu\mathcal{J}^\mu(x)$.
But why don't the Euler-Lagrange equations change under a surface term?