I've been pulled over a couple of times (in different states) and I have been asked what I do for a living both times. I'm not black. It honestly felt like a normal part of their questioning procedure.
I have always been polite and honest. Got away with verbal warnings both times (was above the speed limit).
Do you really think he asked you what you did for a living out of racial profiling?