I don't know if this is still the case, but back when I grew up the answer was that it was made from live virus, so there was a (tiny) chance of getting the actual disease if you got it.
Therefore it was only given to populations already at risk of infection, e.g. nurses.
I remember the same. Our Early Childhood staff got the vaccine unless they had a liver (could be kidney, it has been 20 years) problem. Office staff were not given the vaccine because there was a risk. Things, obviously, could have changed.
I’d be surprised if it was a live vaccine, due to a medical condition I usually don’t get them. And Wikipedia to the rescue https://en.m.wikipedia.org/wiki/Hepatitis_A_vaccine, it’s inactivated virus cultures.
Therefore it was only given to populations already at risk of infection, e.g. nurses.