Incredibly flawed argument. BMW's earnings come from a huge variety of products and services. Not purely battery-powered electric cars. Tesla's entire business model is producing battery-powered vehicles.
So to compare each company's P/E directly under the assumption that they are both making identical products would be wrong. Instead you would need to somehow isolate the P/E ratio of BMW's battery-powered car business in order to draw a meaningful comparison.
In general, this article is trying to group all of tech into one basket and draw conclusions which apply universally. A company has a high P/E ratio for a very simple reason: investors believe its earnings growth will outpace the market. That will seemingly always be true for companies which are focusing on growth over profit.