d/dz of what = 0?
I guess the text is referring to all the other field components, i.e., they are assuming the fields are uniform in the z-direction inside the cavity. This would end up limiting the problem to a 2D domain, which greatly simplifies things.