I will outline my question in 1+1D for brevity. We can passively transform our coordinate system using a Lorentz boost; $\Lambda^{\bar{\nu}}_{\mu}x^{\mu}=x^{\bar{\nu}}$. I've seen that, by stipulating that the speed of light is the same to all observers, rather than time, we can describe this transformation using the matrix:
$$\begin{bmatrix} \bar{ct} \\ \bar{x} \\ \end{bmatrix}=\begin{bmatrix} \gamma & -\beta\gamma \\ -\beta\gamma & \gamma\\ \end{bmatrix}\begin{bmatrix} ct \\ x \\ \end{bmatrix} $$
However, what's not obvious to me is why transformations $\Lambda^{\bar{\nu}}_{\mu}p^{\mu}=p^{\bar{\nu}}$ have the same form.
$$\begin{bmatrix} \bar{E} \\ \bar{p_{x}} \\ \end{bmatrix}=\begin{bmatrix} \gamma & -\beta\gamma \\ -\beta\gamma & \gamma\\ \end{bmatrix}\begin{bmatrix} E \\ p_{x} \\ \end{bmatrix} $$ I understand that all four-vectors transform under Lorentz transformations. The part I don't understand is why the Lorentz matrix has the same form, even though we're transforming a different basis. Intuitively it doesn't make sense to me why energy and momentum are transforming as though they were spacetime coordinates.