A BJT pass transistor enhance the current capacity of the linear regulator.
Vout = Vz - Vbe
The 0V source is just to be able to see the full range from 0V in the wave viewer.
The AC component at the input is just to observe that the output remains regulated even with fluctuations at the input.