Why is it that a plane as big as the C-17 (the A400M is slightly smaller though) use turboprops instead of turbofans? Both aircraft seem to have the same purpose and are both capable of landing at short runways. So why does the A400M have turboprops?

I want to know why two very large planes have different propulsion systems.