UX in tech is bad for a great number of reasons.
1. Good UX is hard and even harder to get right from the start. When teams* are faced with tight deadlines to deliver functionality, they invest too little time in figuring out how to best solve a problem. Even less time and effort is expended to follow up on something that was delivered in order to see if it works (it doesn’t) and how it can be improved.
2. Developers* have their mind set on optimization. This applies to ticking off requirements on a backlog item (I refrain from using the term "User Story" on purpose; the context of features isn’t properly communicated either). With UI development, there is a myriad of details to cover that require attention from everyone and developers* won’t complain if there is no detailed spec for input constraints, form validation, error handling, responsive behavior, keyboard interaction, a11y. Works as designed, why bother.
3. UI Development (for tech, the interface to the user makes/breaks the UX) is seen as "lesser" or "a complicated mess to avoid" by senior developers*. My subjective feeling is, that the seniority in UI dev is/stays behind the mean. There are more juniors around.
4. To a degree, the product quality in tech isn't great, it's not only bad UX. Bad UX is merely more visible, despite it not making the news as much as the backend engineering blunders of not sanitizing input or exposing databases to the interwebs.
5. https://userinyerface.com
* Not all of them. There are exceptions - appreciate them and treat them nicely, they are hard to replace :)*