Garden tomatoes taste much better because they are different varieties. Store tomatoes are varieties that are bred to have a thick skin that doesn't bruise easily, but these varieties have less taste. There are some other fruit and veg where the common varieties are different.
Garden fruit and vegetables also often taste better because they are fresher. Strawberries are especially nice really fresh.
These factors account for most of the difference in taste, if not all.