If it came in a box rather than from a lbs, then it is possible your derailleur hanger is bent from rough handling. They are designed to do this to protect the derailleur and usually can be straightened. Most lbs have the tool for this and it only takes a few minutes.