Why do Metal Gears have blood

It depends on the model. In MGS2, during the battle against the three Rays, hitting them with Stinger missiles doesn't produce blood—it's oil that leaks out, dries, and seals the holes in their armor. In MGS4, the Gekko's legs are made of artificial muscle, so they leak an artificial blood-like fluid instead.