The continuous exposure of the esophagus to stomach acid can cause cellular changes in the esophageal lining. Over time, this can lead to the development of Barrett's esophagus, where the normal squamous cells are replaced by columnar cells, which are more resistant to acid. Despite this adaptive change, these new cells have a higher risk of becoming cancerous, leading to esophageal adenocarcinoma.