If Apple in 2020 had allowed third-party text message applications and in 2024 changed their mind because a competitor was eating their lunch, that would be anticompetitive.
It's not anticompetitive to never allow a third-party text message application in the first place.