Why didn't Hashirama, Tobirama and Minato use rinne rebirth?
Because the jutsu requires a Rinnegan to use it and there wasn't one available on their side.
It is also unclear whether someone summoned by Edo Tensei could use it on themselves.
Madara had Black Zetsu force Obito to perform the jutsu to revive him.
Source