They were all discovered/invented by ancient people between six and ten thousand years ago, and three of the five were invented in the Americas. The world’s five top five staples today (in order of importance) are maize (corn), rice, wheat, potatoes, and cassava. Only rice and wheat were known to Europe, Asia, and Africa before contact with the Americas.
I think it matters a lot that there were no large animal species in the Americas for natives to domesticate because then they did not have meat and milk from cows, no cattle to help pull carriages and do farm work. I find it really interesting that three of the staples we still eat today were invented in the americas.