Convert Arduino PWM 5V to analog output 0-10V

Why not using a common transistor NPN?