So old fashioned

Why do electric cars have to be plugged in to charge? Why can’t they just be parked on a charging mat like our phones can be?