@cdevroe Seems like a mistake to me. I can't see how it couldn't be. Although the advice to order the primary button "on the trailing side" isn't on that page, it's on the Presentation → Alerts page, so maybe someone there thinks this example is not alert-like enough for that to apply?
But I agree with you. It just rubs my eye for UI idioms wrong to see this.