Bubbles form primarily because dissolved gases become less soluble and escape from the water as it is heated.