When a gas is heated, its molecules move faster. This causes a pressure increase which, if not constrained, causes the gas to expand over a larger volume.