It's a solution of Maxwell's equations for infinitely extended plates, i.e., for the field not too close to the boundaries and for the distance between the plates small compared to the extension of the plates.
Now take the case of two infinite plates parallel to the ##xy## plane of a Caratesian coordinate system, one at ##z=0## and one at ##z=d##. Obviously the solution is symmetric under translations in ##x## and ##y## direction. Thus the potential should be a function of ##z## only. There are no charges anywhere, and thus
$$\Delta \phi=\phi'=0.$$
So you have
$$\phi(z)=A+B z$$
with ##A## and ##B## constants. Obviously these constants can take different values inside and outside the plates. Since the potential should stay finite in this configuration, you have ##B=0## for ##z<0## and for ##z>d##. The overall constant is arbitrary, and we can choose it to be such that ##\phi(0)=0##. Then you have
$$\phi(z)=B z \quad \text{for} \quad 0 < z < d.$$
At ##z=d## you have ##\phi(d)=U##, where ##U## is the given voltage difference between the plates, which leads to ##B=U/d## and thus
$$\phi(z)=U \frac{z}{d} \quad \text{for} \quad 0 < z < d.$$
The electric field is
$$\vec{E}=-\vec{\nabla} \phi=-\frac{U}{d} \vec{e}_z \quad \text{for} \quad 0<z<d, \quad \vec{E}=0 \quad \text{everywhere else}.$$
At the upper plate the normal component ##E_z## makes a jump of size ##\sigma=U/d##, and ##\sigma## is the surface charge. At the lower plate you get ##\sigma'=-U/d##.
For a finite but large plate you have ##\sigma=Q/A## and thus ##U/d=Q/A## or ##Q=A U/d##, i.e., the capacitance is ##C=A/d##. If there's a dielectric inside, you have ##C=\epsilon A/d##, where ##\epsilon## is the zero-frequency permittivity of the dielectric.