What are the differences between ICD-10 (or ICD-9-CM) and CPT?

The Omnibus Budget Reconciliation Act mandated that hospitals use CPT to report outpatient services. Why? What are the differences between ICD-10 (or ICD-9-CM) and CPT? Why was CPT even created?