Tomatoes were probably first domesticated in the Andean region of Peru and Ecuador. From there, cultivation spread to Mexico, where conquistadors found them, returning with them to Europe in the seventeenth century.
Modern supermarket tomatoes taste like wet paper towels, for the most part. Buyers (commercial buyers, not the end eaters) want hardiness over taste, so to get decent tomatoes you have to work at it a bit. Shippers, growers, and commercial buyers want durability. Retail buyers go for appearance (and eventually taste) but yeah – getting a good grocery store matter is tricky.