The real reason is-
Mumbai is in Maharashtra and Maharashtra is a country near the sea and cold breezes flow into the city making the climate colder.
While, Ahmedabad is in Gujarat and Gujarat is near the Equater. And we know that countries,states etc near the Equater are warmer.
this is why Ahmedabad has hotter climate.
if my answer helped u plz mark as brainliest