Step 1: State the reasoning differently:
Marriage and an heir were part of the king's determination to defy the astrologer's prophecy at any cost, even beyond his own lifetime.
Step 2: Final Answer:
He married in order to secure a successor who could complete the hunt of the hundredth tiger if he did not manage to kill it himself, ensuring the prophecy would still be defied.