You are buying and eating the so called sweet variety which is safe to eat after proper cooking. The ones used for making flour is called bitter and way more toxic thus the elaborate process.
Practically all the plant foods we can buy have been very heavily altered from their native form. Even many things we think of as "wild", like berries, were cultivated and bred by vanished populations.
The whole Amazon was heavily populated and orcharded before Columbus and his ilk spread measles, yellow fever, smallpox, etc. Pop. estimates range up to 100M. Amazon trees are very different from their wild origins.
I wondered about this too, having seen it on sale in the local supermarket. Thought it was strange people weren't mistakenly dropping dead all over the place!