Why does a molecule of a gas move at high speed?

It has more energy within it which speeds it up causing it to fly faster and bounce harder off of other molecules thus pushing them farther apart creating a gas.