So if Borland were so great, why did they fail so catastrophically in the early 90s?

According to the accounts I've read, Microsoft was much more disciplined, focused on the right projects and hired much more carefully. And was purchasing Ashton-Tate really such a good idea?