I personally think it was done to really build Cody vs KO at Survivor Series. I also think the RKO heel turn happens when he returns.
Also, I don't Randy's injured. He's said multiple times that he's in his best shape because of how Haitch books him. Plus, they let him take time off no questions asked.