It wasn’t until I took a college course that derived the real numbers from elementary set theory that I understood why all of my grade school math textbooks started with set theory and then dropped it like a hot potato. I think someone was trying to set up the foundation for getting that deep understanding of numbers, and then the remnants of that were what actually wound up in the texts.