There is a medical name for this -- it is that the fat layer under the skin suffered some damage. Sometimes the dent will fill in over time (a long time) and sometimes it won't. People often write about this in inquiries on the Internet regarding a bad bruise on their leg that left a seemingly permanent dent.