Except we're not. Engineers that is. According to the Canadian engineer's association or whatever.
Writing avionics software, for instance, I would definitely consider "engineering". And that's a bit of an extreme case; there's lots of other software out there with a lot of rigor.
But yes, a LOT of software these days is just slapped together with processes that don't resemble any kind of true engineering practice at all.
However, let's not forget that even industries with "real engineering" are frequently full of bad or nonexistent engineering practices: just look OceanGate, or the Boeing 737MAX.
I'd say it's still a very small section though, and the vast majority of "software engineers" are really just programmers. Myself included.