You can already hire Indians to make your own HR system. People still choose SAAS, because the system already works.
You do not want to have to plan out a system with 800 unique requirements yourself. It takes a ridiculous amount of work, and you are then stuck maintaining it.
It’s never been about the difficulty of programming, it’s been about the pain of designing and maintaining.