Why were two-prong outlets replaced with three-prong outlets?

Old-fashioned two-prong receptacles connected to two-wire cables don't have the ground wires that protect people and electrical devices in case of a fault.