As abrasive tools, files need to be resistant to wear and have a high tensile strength (resistance to bending).
They also need to be hard enough to cut into other metals, including other types of steel. If the steel that the file teeth were trying to cut into was harder, they would just break.
For these reasons, files are made from high carbon, water-hardened, chrome-alloy steel.