I guess that Hashirama took permanent damage against Madara and weakened. It's noted in databook that Hashirama gave the tittle of Hokage to his younger brother, Tobirama, so he was obviously weaker than Tobirama at that moment. He still fought in the first ninja war and some random ninja killed him.