Boeing shot themselves in the foot after the awful outsourced supply chain [0] and battery problems on the 787 which meant that they had less financial resources available to go clean sheet and instead they adapted an old design.
[0] https://www.consultancy.uk/news/297/outsourcing-main-cause-f...