In order for gas to leave a planet it needs to be hot enough and to overcome the planets gravity. The outer planets are colder and are very big compared to earth.
a theory is usually supported by evidence or another laws rules. it must have pretty strong evidence, but it can NOT become a law. a law is set in stone, and proved by math.