EDTA buffer is used in histology primarily for its chelating properties, which help in decalcification of hard tissues like bones. Decalcification is essential for obtaining high-quality histological sections that can be easily cut and stained. Additionally, EDTA buffer is utilized in antigen retrieval procedures to unmask epitopes that have been masked during the fixation process, thereby enhancing the staining intensity and specificity in immunohistochemistry.