It's a demonstration of how powerful the Yonkos truly are, even without them using their full power, and of how strong their Conqueror Haki is.
To show that they are truly the most powerful pirates in the world and not individuals that even the World Government would want to mess with.