Explanation:
Using a derivative of the combined gas law we can explain what is happening in both instances.
Assuming that the volume is constant which is predicated on the bottle shape and structure, the pressure of a given mass of gas varies directly with the absolute temperature.
As temperature increases, the pressure also increases and vice versa.