Protein digesting enzymes are secreted in inactive form to protect the organs and glands from digestion by the enzymes. If they are released in active form, they start digesting the glands carrying them and the site where they are released. Therefore, they are released in inactive form and are activated only when proper condition is maintained such as presence of food and release of HCl.
Hope this helps :)