According to Boyle’s law, the volume of a constant mass of gas varies inversely with pressure. At the bottom of the glass, the pressure is very high. So, the volume of the gas bubble will be very small. As the bubble rises up, the pressure decreases and so the volume increases.