maintaining the Senate majority was crucial in the event we, for some reason, lost Pence. Grassley slips into his place. The majority party of the Senate chooses president pro tempore based on seniority.
https://www.senate.gov/artandhistory/history/common/briefing/President_Pro_Tempore.htm#2