Seeing as how the alliance defeated both Kaido and Big Mom, there’s be no point in Shanks interfering with them because they don’t stand a chance at defeating the alliance.
Shanks saw Waramaki as that guy and knew he had to intervene for the safety of the alliance.