One flight was arriving from Chicago O'Hare, while the other was departing for O'Hare.
Duplicate call signs put two American Airlines flights on the same frequency near Phoenix.