A spokesperson for American Airlines, which is merging with US Airways, told Business Insider it was all a terrible mistake:

Our investigation has determined that the image was initially posted to our Twitter feed by another user. We captured the tweet to flag it as inappropriate. Unfortunately the image was inadvertently included in a response to a customer.

The airline removed the tweet as soon as it noticed the mistake, he said.