If that were the case, Okta would not have acquired Auth0.
Sometimes they happen so a company can buy out someone so they won't have the chance to become better than them and a serious competitor.
Sometimes they happen so a company can create synergies and improve the scope of their product offerings