So, in the case of special relativity, we look for transformations relating inertial coordinates that leave the spacetime interval invariant and these transformations turn out to be generated by three Lorentz boosts and three spatial rotations.
But at the same time, I couldn't understand why does this count as a restriction as the spacetime interval is supposed to be a scalar (it has two covariant indices that come from the metric and two covariant indices).
Now for any coordinate transformation, a scalar shouldn't change. Therefore, the invariance of the spacetime interval should be an obvious deduction, given that it is a scalar and not a constraint imposed by Lorentz transformations.
I am sure that there is some mistake in this interpretation, could someone point it out?
Edit: So, we look for transformations that leave the spacetime interval invariant. If I write in index notation: $$ dS^2 = \eta_{\mu\nu}dx^{\mu}dx^{\nu} $$ Now suppose under a coordinate transform, $$ x^{\mu} \rightarrow x^{\mu'}=\Lambda^{\mu}_{\nu}x^{\nu}$$
$$dS^2 \rightarrow dS'^2 = \eta_{\mu'\nu'}dx^{\mu'}dx^{\nu'}$$ For the speed of light to be invariant as we go from one inertial frame to another, we demand that these transformations be such that, $$dS^2 = dS'^2$$ The condition we get from this, $$\Lambda^T\eta\Lambda = \eta$$ This characterises Lorentz transformations. But my confusion is the following: Saying, $dS^2 = dS'^2$, to me seems like something that should be always true since it is a scalar. How is it different from saying $\Phi(x^{\mu}) = \Phi'(x^{\mu'})$, where $\Phi$ is a scalar-valued function.
Edit2: Am I already restricting the coordinate transformations I can take if I demand, $\Phi(x^{\mu}) = \Phi'(x^{\mu'})$?