Given his admiration for Rocks and a desire to take vengeance against the WG, it’s very likely Loki was trying to revive the Rocks pirates.
I wouldn’t be surprised if Shanks was sabotaging all his plans in order to rat his way back into the WG’s good graces.