"Oil" isn't one product. It differs widely in chemical and physical properties (viscosity, how much sulfur and arsenic is present, etc.) depending on how/where it was produced. Different refineries are setup to refine different grades of oil and the oil is often blended before shipment to meet the specs the refineries expect. It is often cheaper for the US to import the right grade of oil than it would be to reconfigure the domestic refineries to process all the domestically produced oil.
This is also why there are several oil "prices" that you will see quoted, the most common two being WTI and Brent.