>>50847302All of the above.
Its ability makes it a good defensive pivot against physical attackers.
Its typing makes it a good defensive pivot against electric and ground types, and gives it a strong STAB earthquake.
Its stats are good across the board, giving offensive presence, decent speed, and enough defense to stay on the field.
And its movepool tops it all off. Edgequake coverage, Stealth Rock and Defog to set and remove hazards, U-Turn for momentum, and Swords Dance to buff its already good attack.
But a key point is that it has shortcomings in every regard, too. Its ability can fail to work or even backfire against Defiant or Competitive mons. Its typing gives it a 4x weakness to the most common coverage type. Its stats leave it specially frail and outsped by a lot of things. And its movepool leaves it without reliable recovery or good Flying STAB.
In other words, rather than being amazing at one thing, Landorus is better than mediocre at a ton of things.