When the bottle is heated, bubbles of air are seen escaping into the water because on heating increase in volume and try to escape through the passage of the tube and escape through the water making it bubbling.
i.e Volume expansion of air is the reason for this.