Occupation has multiple meanings. It can refer your work, or to taking over another country by force. He was asking a German crossing the border what he did for a living, and the German made a joke that he wasn't going to take over Poland this time.