Filled d orbitals of the metal can have correct symmetry to back donate electron density to the pi* orbital of the CO ligand (this interaction strengthens the bonding with respect to the M-L bond, but weakens its with respect to the CO pi bond - This can actually be seen in the IR spectra of these complexes). The pi* orbital has greater coefficient on the C atom, and so CO often bonds via carbon as it allows for better orbital overlap between the d and pi* orbitals.