That's because you are looking only at up front cost rather than total cost of ownership.
A gas car will cost more than $45k in gasoline over its life.
An EV in most parts of Canada will cost less than $10k over the same distance for electricity.
That $45k EVs is already significantly cheaper than an equivalent gas car. This has been true for a while now.
If you drive enough, it can even be cheaper per month while paying for the car. A $600 per month EV payment with $100 a month electrical cost is the same price as a $300 car payment with $400 in gas costs. Then the moment you pay the car off you're saving $300 a month for the rest of its life.
If all you do is commute 10km a day, Yea don't go buy a brand new EV, but you shouldn't be buying a brand new gas car for that either.