The factor of -1/4 in the electromagnetic Lagrangian arises from the need to account for the contraction of the two tensors, which results in four identical terms. While the kinetic term for a real scalar field includes a factor of 1/2, the electromagnetic case requires an adjustment. This adjustment leads to an additional factor of 2, changing the 1/2 to 1/4. The formulation is not for convenience but is necessary to accurately represent the dynamics of the electromagnetic field. Understanding this factor is crucial for correctly interpreting the Lagrangian's structure.