Shanks haki is so powerful he can defeat admiral with it yet couldn't even prevent Kid's attack without drawing his sword

In marineford why didn't he block Akainu fist with his haki alone time and time again this hakiman refuses to stop relying on gryphon