The automakers are building EVs because regulations that prohibit emissions from internal combustion engines.  The luxury market is targeted first because of learning curves and the lack of economies of scale make component costs greater than that of corresponding ICE vehicles.