Hematomas are painful pools of blood that form outside of blood vessels.
They are fairly common occurrences for dogs and cats, especially on their ears.
When play involves biting or scratching, it's easy to burst a blood vessel, which can cause a hematoma.