(Reuters) - Rocket Companies ( RKT ) said on Monday it would buy Mr Cooper Group ( COOP ) for $9.4 billion in an all-stock transaction.