For the simple theory of a single real scalar field $\phi$ in 1+1D, the Lagrange density is $$\mathcal{L}=\frac{1}{2}\partial_\mu\phi\partial^\mu\phi-U(\phi)\tag{1}$$ with Minkowski signature $(+,-)$, and the corresponding Hamiltonian is $$\mathcal{H}=\frac{1}{2}\partial_\mu\phi\partial^\mu\phi+U(\phi)\tag{2}$$so the total energy of the field configuration is $$E=\int dx\,\left(\frac{1}{2}(\partial_t\phi)^2+\frac{1}{2}(\partial_x\phi)^2+U(\phi)\right).\tag{3}$$
Often I will see this energy broken down in the following way: $$\text{kinetic energy:}\quad\frac{1}{2}(\partial_t\phi)^2\\ \text{gradient energy:}\quad\frac{1}{2}(\partial_x\phi)^2\\ \text{potential energy:}\quad U(\phi)\tag{4}$$ For example, see Sean Carroll's Spacetime and Geometry, P. 40. The total energy is no longer just "kinetic plus potential" but "kinetic plus gradient plus potential". How can one understand the energy associated with the gradient of the field distribution? Is there any analogy to classical (particle) mechanics, where the energy is simply stated to be $$\mathcal{H}=T+U~?\tag{5}$$
Ostensibly this means that a scalar field distribution which is spatially varying but static could have more energy than one which is flat but dynamic. What is the intuition here?