That seems to be a misunderstanding. The field-theoretic case behaves in essentially the same way as the point mechanical situation.
For instance, the arguments of the Lagrangian density $${\cal L}(\phi,\partial_t\phi,\partial_x\phi,\partial_y\phi,\partial_z\phi,t,x,y,z)$$ are independent variables in the same way as the arguments of the Lagrangian $$L(q,\dot{q},t)$$ are independent variables.
On one hand, the arguments of the Lagrangian density $${\cal L}(\phi,\partial_t\phi,\partial_x\phi,\partial_y\phi,\partial_z\phi,t,x,y,z)$$ are independent variables in the same way as the arguments of the Lagrangian $$L(q,\dot{q},t)$$ are independent variables.
On the other hand, inside the actions $S[\phi]$ (and $S[q]$), the derivatives $\partial_{\mu}\phi$ (and $\dot{q}$) depend on $\phi$ (and $q$), respectively.
The proof is a straightforward generalization of thismy Phys.SE postanswer here.