Ancient Gears Thought to be 300 Million Years Old

When these gears were found, experts were baffled. After inspections, they were proven to be 300 million years old and they were originally trapped in a prehistoric lump of coal. But, how could these shapes, which are usually built by machinery today, be naturally occurring?