Leaving the engine running is a red flag to staff that you're going to drive off without paying, it's not dangerous, but it's incredibly inconvenient for the staff as they have to stand there and watch you until you go in to pay.