Particle Model of MatterFoundation2 marks

Why does a gas exert pressure on the walls of its container?