If elevated above the soil, the ends are often connected to ground rods as a safety measure, rather than to improve the function of the antenna.
When raised above the ground, the ends of an antenna are typically connected to grounding rods for safety reasons, not to improve its performance.