To continue growing organically once you reach a certain size is difficult, so acquisitions become necessary.
M&A is notoriously difficult to get right, and I'd say SAP may have been better than average overall.
But its expensive acquisition of Qualtrics seemed, to me, to correlate with a very sharp turn in strategy, such that its formerly darling HANA abruptly lost its appeal.
To wit: 4,000+ employees were laid off, myself included.