They are in different reference frames, but there is more to it than that. Even once you have converted TEME to ECEF, there will still be differences, because things that have the same name actually have very different meanings. RINEX is just a file format; the burden is placed on users to understand that GPS nav messages and TLEs use the same field names for different purposes.
The NAVSTAR GPS Space Segment/Navigation User Interface Specification IS-GPS-200 (Revision M, dated May 2021), Section 20.3.3.4, "Subframes 2 and 3", gives 12 pages of instructions of how the user segment is required to perform ephemeris calculations, which do not quite line up with the way anyone else uses those terms. In particular, note these statements (emphasis mine):
The ephemeris parameters describe the orbit during the curve fit intervals
described in section 20.3.4. Table 20-II gives the definition of the orbital
parameters using terminology
typical of Keplerian orbital parameters; it shall be noted, however,
that the transmitted parameter values are such that they provide the
best trajectory fit in Earth-Centered, Earth-Fixed (ECEF) coordinates
for each specific fit interval. The user shall not interpret
intermediate coordinate values as pertaining to any conventional
coordinate system.
The user shall compute the ECEF coordinates of position for the phase center of the SVs’ antennas utilizing
a variation of the equations shown in Table 20-IV. Subframes 2 and 3 parameters are Keplerian in
appearance; the values of these parameters, however, are produced... via a least squares curve fit of the propagated ephemeris of the phase center of
the SVs’ antennas
Fit intervals are three or four hours long. The numbers in GPS nav messages give the values which provide the best fit over that entire interval, so they are not the same as osculating elements for the GPS orbits at any specific epoch. You have to read the docs for how to handle them, and you have to use the equations they tell you to (including, for example, a specific way of iterating Kepler's equation towards a solution), or the answer you get will not have the same error statistics that these tables exist to let you achieve.
These warnings are even more true about Two-Line Element sets. Those numbers are even farther from osculating. They are called mean elements. It could be argued that word should apply to the way GPS does it, but that's not the way the word is used in orbital mechanics. "Mean" usually just means "average", but there are many ways to average something, and the term's technical use in astrodynamics is both more specific and more general than you might expect. In the words of H. G. Walter (1967), "by mean elements we understand osculating elements from which short-periodic and long-periodic perturbations of the earth’s potential have been subtracted." In order to convert from mean elements to osculating elements, you have to know exactly which perturbations were chosen for subtraction, and you need to calculate those corrections and add them back in, or you will get the wrong answer.
Orbit elements in TLEs are specified in "Kozai form", which means using the exact list of perturbations chosen for removal in Yoshihide Kozai, The motion of a close earth satellite, Astronomical Journal 64 (367-377) 1959. For example, the value to be placed in the field labeled "semimajor axis" is not the usual $a$ (which the linked paper calls $a_0$), but rather the "mean" $\bar{a}$, which equals $a_0$ times the factor
$$1-\frac{A_2}{p^2}\left(1-\frac{3}{2}\sin^2 i\right)\sqrt{(1-e^2)}$$
where $p=a(1-e^2)$ and $A_2$ is a gravity expansion coefficient that equals $\frac{3}{2}J_2 R^2$, where $J_2$ is the familiar thing and $R$ is the earth's equatorial radius.
This is by far the simplest such formula. The equivalent expressions for argument of perigee ($\bar{\omega}$) and right ascension of the ascending node ($\bar{\Omega}$) run to several pages. Note that the conversion from Kozai's $A_2$ to the now common $J_2$ I obtained from Brouwer (1959), which describes a different and much more complicated set of mean elements, and has a table showing how to translate among nine different forms of gravity expansion coefficients. Brouwer's article ends with the statement,
I now regret that I introduced $k_2$, $k_4$ in my paper in
1946. The principal reason was that they give a particularly simple form for the expression of the potential in the equatorial plane. If I
could have foreseen the increase in interest in the subject and the
confusion to which I was contributing, I would have chosen ... the
alternative form which was used by Vinti (1959). I intend to revert to
this form and recommend this to other authors.
Brouwer's plea appears to have worked, as astrodynamics seems to have settled firmly on the form Vinti credited to R. H . Merson and D. G. King-Hele, Use of Artificial Satellites to Explore the Earth's Gravitational Field: Results from Sputnik 2 (1957β), Nature 182 (640) 1958, the familiar
$$V(r,\theta)=-\frac{GM}{r}\left[1-\sum_{p=2}^{\infty}J_p\left(\frac{R}{r}\right)^p P_p(\sin\theta)\right]$$