I'd be willing to guess the dream was a reaction to leg cramps. In your REM state, your brain was making up an excuse to provide a meaning to the pain. If you think about it, the location may make sense - was your old job "a pain"?
The folks in chat can tell you about my strange dreams.