In non-relativistic classical mechanics if I was to describe the waves within a three dimensional medium, I would write down a Lagrangian $L$ in terms of the Lagrangian density $\mathcal{L}$ as
$$L = \int\mathcal{L}dxdydz $$
and the action as
$$ S = \int L dt = \int \mathcal{L}dxdydzdt. $$
When transitioning to relativistic field theory, we are now considering space-time and therefore an extra dimension. If time is to be treated on an equal footing as space, then why do the integrals not increase by one dimension with proper time as the new path parameter i.e.
$$ L = \int \mathcal{L}cdtdxdxdz $$
and the action as
$$ S = \int L d\tau = \int \mathcal{L}cdtdxdydzd\tau. $$
$L$ and $S$ do not change when transitioning to relativistic field theory. So essentially my question is: why is the Lagrange density in relativistic field theory not defined as the Lagrangian per unit volume of the space, when in non-relativistic field theory it is treated as Lagrangian per unit volume of that space?