The direct answer is that they did not and your question is simply false.
Your question is based on several widespread misconceptions and folklore myths (i.e. "fake news" or "fake history") - many of which have been passed around even within the Physics community - including the following: (1) that Maxwell's equations are actually Maxwell's, (2) that Maxwell's equations have the Lorentz group solely as its symmetry group, and many other misconceptions borne of the myth and folklore that's arisen by the "telephone tag" that's been played with the older literature.
(1) The equations today called "Maxwell's Equations" are an historical evolution and refinement from what Maxwell originally wrote, that have passed through many hands and revisions and alterations, including Heaviside, Helmholtz, Hertz, Lorentz in the 19th century; Einstein, Minkowski and others in the 20th. Much of what we now recognize as Maxwell's equations you would barely recognize in Maxwell's treatise as such, and would only recognize in his earlier papers with a great deal of effort.
Amongst the many changes. (a) Maxwell used the electric and magnetic potential that was mostly discarded and neglected by his contemporaries and followers throughout the 19th century, and (b) he used the Coulomb gauge, by the way, though he didn't list it in profile with his other equations. (c) He drew a (mostly) clear distinction between $(𝐄,𝐁)$ and $(𝐃,𝐇)$ fields that others (notably Hertz, Lorentz to some degree) tried to negate, but (d) still tended to confuse $𝐁$ and $𝐇$ fields (a habit that was a holdover from his pre-treatise days), which led to the wrong constitutive law that had to later be corrected by Thomson. They have different transformation properties: $𝐁$ transforms as the components of a 2-form, while $𝐇$ transform as the components of a 1-form. A similar observation applies to $𝐃$ and $𝐄$. This omission - one of several mistakes in his treatise - partially contributed to the confusion of the issue down the line.
(2) (e) The equations Maxwell actually wrote were not Lorentz invariant, but Galilean invariant, except for the omission in the constitutive relation for $𝐁$ versus $𝐇$. When the constitutive laws are excluded from the list, then Maxwell's equations can be written in a form that is invariant under all coordinate transformations involving $(x,y,z,t)$, not just $(x,y,z)$. They are diffeomorphism invariant. This invariance is fully brought out when they are written using differential forms.
(f) Maxwell used differential forms, more so than vectors, to write his equations - both in the treatise and in his pre-treatise works; but did not make full use of the Grassmann algebra that we normally use with them today; though he did use it to a limited degree in the treatise, e.g. by writing $dx dy = -dy dx$ or, as we would today write it, $dx \wedge dy = -dy \wedge dx$.
His differential forms, however, were limited only to the spatial coordinates, and would therefore have only been served as a presentation suitable for arbitrary coordinate transformations involving the spatial coordinates only. His differential forms, when written today, would be the following:
$$E₃ ≡ 𝐄·d𝐫 = E_x dx + E_y dy + E_z dz, B₃ ≡ 𝐁·d𝐒 = B^x dy \wedge dz + B^y dz \wedge dx + B^z dx \wedge dy,$$
$$H₃ ≡ 𝐇·d𝐫 = H_x dx + H_y dy + H_z dz, D₃ ≡ 𝐃·d𝐒 = D^x dy \wedge dz + D^y dz \wedge dx + D^z dx \wedge dy,$$
$$A₃ ≡ 𝐀·d𝐫 = A_x dx + A_y dy + A_z dz, J₃ ≡ 𝐉·d𝐒 = J^x dy \wedge dz + J^y dz \wedge dx + J^z dx \wedge dy,$$
$$Q₃ ≡ ρ dV.$$
where
$$d𝐫 = (dx,dy,dz),$$
$$d𝐒 = (dy \wedge dz, dz \wedge dx, dx \wedge dy),$$
$$dV = dx \wedge dy \wedge dz,$$
is used to express the differential forms in Cartesian coordinates.
He failed to notice that they pair off to form the differential forms
$$A ≡ A₃ - φ dt, F ≡ B₃ + E₃ \wedge dt,$$
$$G ≡ D₃ - H₃ \wedge dt, Q ≡ Q₃ - J₃ \wedge dt,$$
which he could have discovered by completely (and correctly) carrying out his analysis of the transformation properties of the various fields.
Maxwell's equations, minus the constitutive laws, can be written as
$$dA = F ⇒ dF = 0,$$
$$dG = Q ⇒ dQ = 0,$$
the second of each set following from the first. These are invariant under all space-time coordinate transforms. When written in terms of a Cartesian inertial frame they take on the familiar form that is originally attributed to Heaviside
$$\{ 𝐄 = -∇φ - {∂𝐀 \over ∂t}, 𝐁 = ∇×𝐀 \} ⇒ \{ ∇·𝐁 = 0, ∇×𝐄 + {∂𝐁 \over ∂t} = 𝟎 \},$$
$$\{ ∇·𝐃 = ρ, ∇×𝐇 - {∂𝐃 \over ∂t} = 𝐉 \} ⇒ \{ ∇·𝐉 + {∂ρ \over ∂t} = 0 \}.$$
(g) The 4-dimensionality of the Maxwell equations has absolutely nothing to do with Minkowski's formulation of 4-dimensional geometry. The idea that this is where/how the 4-dimensionality of the equations arises is a huge folklore myth; one of the most serious of them all.
In fact, these equations are the equations that hold in a Relativistic world, but also in a non-Relativistic world and even (as you will see below) in a Carrollean world or a Euclidean 4-D timeless space.
(h) The constitutive law that Maxwell (once Thomson's correction is added), Lorentz, Heaviside, Hertz, Helmholtz all used is equivalent to the following
$$𝐃 = ε(𝐄 + 𝐆×𝐁), 𝐁 = μ(𝐇 - 𝐆×𝐃).$$
The velocity $𝐆$ identities the velocity associated with the unique frame in which the constitutive laws assume their isotropic form
$$𝐃 = ε𝐄, 𝐁 = μ𝐇.$$
The isotropic frame in pre 20th century literature and in the early 20th century up to (and including) Einstein's 1905 Special Relativity paper was called the "stationary frame". (Lorentz, used $-𝐩$ instead of $𝐆$ and Maxwell used $𝐯$ in his treatise interchangeably with $𝐆$, even in the same section in some places.) This is what the "moving" in "On the electrodynamics of moving bodies" actually refers to. He called out the $𝐆$ vector in the opening section of his paper, but not symbolically or by name. Had he named it, he probably would have used Lorentz's $𝐩$ as the name. He was most certainly aware of what his contemporaries were doing, since he had already written 23 reviews of other's papers in Annalen de Physik during the 1904-1905 period, which would can read for yourself in the archive of Einstein's writings on line at Princeton (https://einsteinpapers.press.princeton.edu/). So, I'm not sure why he neglected to do a more detailed comparative survey of the related works, in his paper and make more direct reference to these specifics.
These equations are not Lorentz covariant, but Galilean covariant! Maxwell's equations, before Einstein, were covariant with respect to Galilean transforms. That includes Lorentz's treatment, notwithstanding his attempt at doing the Lorentz transform fix to try and recover the stationary form of the equations for all frames in the vacuum. His equations were still Galilean covariant, because of the absence of the extra relativistic terms on the left in his constitutive laws.
(h) The Relativistic form of the constitutive laws - as laid out by Minkowski in 1908 and Einstein and Laub also in 1908 - are
$$𝐃 + {1 \over c²} 𝐆×𝐇 = ε(𝐄 + 𝐆×𝐁), 𝐁 - {1 \over c²} 𝐆×𝐄 = μ(𝐇 - 𝐆×𝐃).$$
This set of equations with this form of the constitutive laws, today, is known as the Maxwell-Minkowski Equations.
The extra terms on the left distinguish the Relativistic from the non-Relativistic versions of the constitutive law. They also have the feature that $𝐆$ becomes entirely superfluous if $|𝐆| < c$, whenever $εμ = 1/c²$. Under that condition the equations are equivalent to the "stationary form" (as you can verify).
Einstein himself (as well as Minkowski in his 1908) paper made this point fairly clearly; with Einstein specifically pointing out that Lorentz's equations were not Lorentz covariant, but Galilean covariant, on account of the absent terms. The same applies to the formulations of the other 19th century predecessors.
These constitutive laws describe a connection between the two sets of fields that is suitable for "moving media" - e.g. material media, like water or even air, with a sublight wave speed and a fixed frame of isotropy.
Maxwell's equations with the Galilean version of the constitutive laws can be written by solving for $𝐄$ and $𝐇$:
$$𝐄 = {𝐃 \over ε} - 𝐆×𝐁, 𝐇 = {𝐁 \over μ} + 𝐆×𝐃,$$
and back-substituting in the other equations to write
$${𝐃 \over ε} = -∇φ - {∂𝐀 \over ∂t} + 𝐆×𝐁, 𝐁 = ∇×𝐀,$$
$$∇·𝐃 = ρ, ∇×\left({𝐁 \over μ} + 𝐆×𝐃\right) - {∂𝐃 \over ∂t} = 𝐉.$$
Apart from the missing $𝐆×𝐃$ term, that's what Maxwell actually wrote. His $𝐄$ is equivalent to our $𝐃/ε$ or our $𝐄 + 𝐆×𝐁$, and his $𝐇$ should have been equivalent to our $𝐁/μ$ or $𝐇 - 𝐆×𝐃$, except for the absence of the last term. He actually did mull over whether that extra term should be included or not, at one point in his pre-treatise papers, but still kept it out.
The treatment given by Lorentz had a similar dichotomy and reduction in it.
Much later in the 20th century, completely oblivious to these, Levi-Leblond laid out in the literature his "Galilean limits", starting from the erroneous premise "what if Maxwell's theory had been Galilean", as if they weren't! He completely ignored all of this earlier work, because much of it was lost, forgotten or neglected by the mid 20th century.
Only the constitutive laws make any distinction between relativistic and non-Relativistic. To do this issue right, and tie into Levi-Leblond (and Bacry)'s later classification of "all possible kinematic groups", the following generalized form, further below, of the Maxwell-Minkowski relations can be posed.
The correct formulation of the so-called "Galilean limit" is in the larger framework that answers the question: what would electromagnetism and gauge theory look like in a universe whose kinematics are governed, locally, by one of the Bacry/Levi-Leblond kinematic groups?
There are 14 in their classifications. When the groups are centrally extended, this number reduces to 13. Overall, they comprise a 3-parameter family of kinematic groups. One of the parameters corresponds to the flatness and curvature of the underlying spacetime. 5 of the groups go with flat space-time geometry (the other 9 go with uniformly curved spacetime geometries). In 3 of the groups, the "time" in "space-time" is actually a spatial dimension ... so the original Bacry/Levi-Leblond treatment excluded them. That includes 1 of the 5 flat space groups. The reduction of 14 to 13 takes place with 2 of the flat-space groups (the Carroll and Static groups have the same central extension).
The 5 of the remaining flat space kinematic groups are: Poincaré, Galilei, Carroll/Static and Euclidean-4D. Their associated geometries have the following as their invariants
$$βdt^2 - α\left(dx^2 + dy^2 + dz^2\right),$$
$$β\left({∂ \over ∂x}^2 + {∂ \over ∂y}^2 + {∂ \over ∂z}^2\right) - α{∂ \over ∂t}^2,$$
$$dx·{∂ \over ∂x} + dy·{∂ \over ∂y} + dz·{∂ \over ∂z} + dt·{∂ \over ∂t}.$$
The parameter $α$ controls the Galilean limit: $c → ∞$ as $α → 0$. The parameter $β$ controls the Carrollean limit: $c → 0$ as $β → 0$. The "static" limit is also possible (that was the major innovation and point made by the Bacry/Levi-Leblond treatment), where $(α,β) → 0$, though the geometric representation given above ceases to be cohesive in the static limit. The Relativistic world corresponds to $αβ > 0$ with an invariant speed given by $c ≡ \sqrt{β/α}$. The timeless 4-D Euclidean space corresponds to $αβ < 0$.
The form of the constitutive law suitable for a universe governed by the $(α,β)$ version of the kinematic group is:
$$𝐃 + α𝐆×𝐇 = ε(𝐄 + β𝐆×𝐁), 𝐁 - α𝐆×𝐄 = μ(𝐇 - β𝐆×𝐃),$$
with the non-relativistic version corresponding to $(α,β) = (0,1)$ and the relativistic case to $(α,β) = (1/c²,1)$.