Glass inhibits radiative reemission of heat. So does CO2. Same mechanism.
While nothing inside the greenhouse generates heat, the light from the sun obviously does, same with your static car.
This is more than just trapping heat by a simple barrier. It reduces heat radiation while allowing the light to enter. Light hits something and it absorbed and that is reradiated as IR (heat radiation).
I see it as a very close analogy.