Scars form when the dermis (deep, thick layer of the skin) is damaged.
It is a natural part of the healing process where the new tissue has to form for the skin to repair itself. Steps can be taken to quicken this healing process, especially in cases of severity.