Would you rather peer through glass or at a screen if holding the camera at eye level?
An electronic viewfinder is basically a tiny LCD screen on which you can review shooting info, as well as seeing your subject and looking at images. An optical viewfinder, on the other hand, provides an uncluttered real-time view of your subject, and little else.
It’s perhaps no surprise that electronics companies with expertise in screen tech tend to opt for the former, while more traditional camera brands take the optical route. Electronic viewfinders were once seen as the poor relation, but advances in resolution, and the introduction of OLED screens, mean images are virtually indistinguishable from their optical brethren.