The pressure exerted by a confined gas is the result of

gas particles colliding with each other
gas particles colliding with the walls of the container
nobody knows, it just is
gas particles taking up space in the container