Online shopping was invented in 1979 in the UK. The first online B2B system was Thomson Holidays in 1981. The first B2C system was Tesco in 1984.
Shopping online was simply introduced becuase people did not want the hassle of driving all the way to the local mall..and to some people this could be an hour away depending on where you live. (rural, urban ect ect)
It’s a cool way to shop and you can look at what exactly you want with in a matter of minutes instead of shopping all day at the mall. You can’t just hit a search button to search “polka dot shoes” you have to look up and down the shelves for them. sSo simply for convience I would say this was introduced to shoppers world wide.