Understanding the formation of a heavy fermion ground state in UPt4Au