Stock gauges are electric.
Some say that electric is less reliable, although I think some of that is from the "good old days" and technology has since marched on.
Others are electric only as they do not want the risk of hot oil in the interior of the car.
Some gauges are only available as electric...voltage (obviously), fuel, most water temp and some are only mechanical...vacuum.