There are many potential causes of a dog panting while resting, and it is essential to consult a veterinarian to figure out any serious health problems. However, some common reasons for this behavior include anxiety, heat exhaustion, and pain.