(Edited below -- Thanks for the clarification)
Exactly, Daniel. This was a public display of power by Tim Cook. Elon got nothing from the visit (at least from what we know) and Tim got him to stop disparaging Apple.
Moreover, it was the good kind of power. Instead of retaliating tit-for-tat...