BMW is a mass producer of cars to millions of drivers around the world. Some race, some commute, some tour and some cart the kids to school. They're in business to make money, like any other, and they undoubtedly conducted a load of market research to determine feasibility of the i line.
All manufacturers are dabbling with electric potential. At least BMW is doing so with intent to be desired.