The connection between harmonic oscillators and quantum fields only holds for free fields, independently on whether it is a scalar, spinor or gauge field. And the reason is more mathematical than physical, meaning that you can see that the Lagrangian of a free field is really a collection of...