Recall that the greenhouse effect occurs because gases in a planet’s atmosphere trap heat and insulate the planet. Here are the conditions in the atmosphere of the four inner planets:
Atmosphere plays a VERY important role in the temperature of a planet. The atmosphere of Venus traps a great deal of solar energy as heat, warming the planet to a very high temperature.
Source: Solar System Exploration | NASA