That's atomic ash.
The reason why it is painted is because even though the car has been repaired after the impact, it will still be uneven. After all, it is artificially shaped and cannot be compared with the molds coming out of the assembly line. Applying it will make the unevenness. The place is filled up and there will be no uneven feeling after painting.