Apparently survival inside the camp for this long was only possible if you knew how to climb the hierarchy, and Pilecki did it well. For example - on the day he (and a few of his friends) fled they were assigned to a job in a bakery. A job in a bakery is one of the best jobs you could possibly get there, as you can steal enough food to not die of starvation.