Just as a factual point, both Clinton (1988) and Obama (2004) gave the keynote address to the DNC convention four years before they ran for President.
And Sarah was the nominee for Vice President. She wasn’t just giving speeches.