Electric cars do have oil that will ultimately need changing but it’s less exposed to contaminants than the engine oil in a internal combustion engine and therefore will last a lot longer. EVs typically have a reduction gearbox and differential and these will require oil changes in a similar fashion to a manual gearbox or differential in a ICE vehicle - i.e. barring exceptional circumstances it will last long enough to get out of warranty but don’t believe it will never need changing.
Electric cars do have oil that will ultimately need changing but it’s less exposed to contaminants than the engine oil in a internal combustion engine and therefore will last a lot longer. EVs typically have a reduction gearbox and differential and these will require oil changes in a similar fashion to a manual gearbox or differential in a ICE vehicle - i.e. barring exceptional circumstances it will last long enough to get out of warranty but don’t believe it will never need changing.