He could have asked, but Robert wouldn’t have necessarily said yes…
However, the way Tywin phrases it here suggests that he did see Jaime’s vow as binding until recently:
Lord Tywin glanced at Jaime’s stump again. “You cannot serve in the Kingsguard without a sword hand—”
“I can,” he interrupted. “And I will. There’s precedent. I’ll look in the White Book and find it, if you like. Crippled or whole, a knight of the Kingsguard serves for life.”
“Cersei ended that when she replaced Ser Barristan on grounds of age. A suitable gift to the Faith will persuade the High Septon to release you from your vows. Your sister was foolish to dismiss Selmy, admittedly, but now that she has opened the gates—” (Jaime VII, ASOS)
So it may well have been that he thought at the time that it was unthinkable that a member of the Kingsguard would be dismissed from office, but once it happened, he was happy enough to use the precedent (and a fair bit of bribery) to get what he wanted.