Heat. At distances relatively close to the sun, gases expand too much to “group up” enough to create the gravitational forces to form a planet. Heat makes things expand. Solids like metals and rocks can remain solid at higher temperatures, so the gases closer to the sun were too heated to condense into gas giant planets. But rocks could.
Further away from the sun is colder, so gases are denser.
Latest Answers