Metal casting machinery handles the removal of gating systems from castings through various methods such as cutting, grinding, or breaking off the excess material. This process, known as "degating," is typically automated and uses specialized tools to efficiently remove the gating system, leaving behind a clean and finished casting.