The function of the central dark florets of D. carota has been subject to debate since Charles Darwin speculated that they are a vestigial trait.[14] It has been suggested that they have the adaptive function of mimicking insects, thus either discouraging herbivory,[15] or attracting pollinators[16] by indicating the presence of food or opportunities for mating
Alright - so it's not only me who thinks that they look like spiky insects 😄
Well, the spiky insects in the photo are the seeds. They are spiky so that they could easily hook onto animal fur and be carried to new places. The Wiki article talks about flowers – this is what they mean, it's really cool:
I don't see the image you posted, but I looked up "D. carota dark central florets" and I found some images. Cool! I will pay attention to this next time I find them.