Welcome to HealthcareMagic forum.
This has happened either due to some injury
or due to some blood disorder causing spontaneous haemorrhages in your body. If such spots appear in other areas also then go for blood tests to rule out coagulation disorders or deep vein thrombosis
Dr. Rakhi Tayal