Answer:
Well, two reasons.
1. Shermans were the most mass-produced tank in WW2 and were able to fight on lots of fronts and have the numbers advantage.
2. Hitler underestimated allied tanks and was having mental breakdowns (from not having proper medicine treatment) that lead to poor decision making.