New environments, found all over the world, provided by the evolution of the flowering plants have driven diversification of beetles. The longer beetles reside in these environments with all kinds of flowers, the more niches and differences beetles can eventually adapt to.
Another theory is that the Coleoptera speciation (Co-Speciation) rates are particularly rapid. The extreme diversity of beetles reflects the Jurassic origin of numerous modern lineages, high lineage survival, and the diversification into a wide range of niches, including the utilization of all parts of plants.
Most beetle families have Jurassic roots and they can be described as great survivors. When coupled with their aptitude for occupying a wide variety of ecological niches, beetles display an effective formula for success.
Co-Speciation is one of the largest factors for beetle diversity; the plant diversity has allowed beetles to adapt with the plants beetles consume. When a variety of plants (including the flowering plants) started appearing in the Jurassic Era, it is presumed that beetles moved onto, sometimes lived in, these plants played a large role in a beetles’ lives. Some beetles ate the roots, some ate the seeds, others tried the stems, or sucked up the flower altogether.
One of the websites had these examples; they sounded interesting, so I paraphrased them. I don’t know if we should include them,