> The agricultural sector employed 892 million people worldwide in 2022, which corresponds to 26.2 percent of total employment.
However, in the USA:
> Direct on-farm employment accounted for about 2.6 million of these jobs, or 1.2 percent of U.S. employment.[1].
The USA grows enough food to feed itself[2], so this indicates that either the rest of the world still hasn't mechanized farming (possibly due to poverty/cheap labor), or that crops in the rest of the world are particularly resistant to mechanization. If the rest of the world was at the same level of mechanization as the USA, the total number of people employed would be about 5% of what it you cited.
[1] https://www.ers.usda.gov/data-products/chart-gallery/58282 [2] https://pmc.ncbi.nlm.nih.gov/articles/PMC6041859/