The army just owns them, and gets the money from them.
When you don't have an effective governmental setup, these things do come in.
When a building falls, the army engineer corps is the first to reach the scene ( a professional force). Why ? because there is no such thing existing because of the administration.
Whenever there is a disaster, specialized teams from the army come in. Why? because there is no infrastructure setup by the administration.
The Army provides, Fauji Cement, schools , colleges, hospitals, houses, etc etc. Which do not employ soldiers or officers in the schemes themselves. The army just gains profit from it. And this becomes an extra avenue for cash inflow and budget.