See 'Types of Camps' here:
https://en.wikipedia.org/wiki/List_of_prisoner-of-war_camps_in_Germany#Types_of_Camps_2
Note that, while some camps were specifically designated for officers, both officers and other ranks might initially be together in transit camps.
See also this quote from the same Wikipedia page:
"Articles 27-32 detailed the conditions of labour. Enlisted ranks were required to perform whatever labour they were asked and able to do, so long as it was not dangerous and did not support the German war effort. Senior Non-commissioned officers (sergeants and above) were required to work only in a supervisory role. Commissioned officers were not required to work, although they could volunteer. The work performed was largely agricultural or industrial, ranging from coal or potash mining, stone quarrying, or work in saw mills, breweries, factories, railroad yards, and forests"
It's possible that some officers volunteered to work, either out of sheer boredom or because they thought that the chance of escape would be greater if they were working outside a camp. If so, it's likely that they would then have been placed in the same camps as the other ranks that they were working alongside, simply so that they could be near to their places of work.