Bacteria are prokaryotes, which means they function differently than eukaryotes in many aspects, including protein production. When an eukaryote gene is inserted in a bacteria, it is necessary to use an altered form of the gene in order to make it work and produce the associated protein correctly. In the case mentioned in the questioned, the gene wasn`t probably altered and didn`t work for the production of the milk protein.