Why is it not always possible to obtain the theoretical amount of product in a chemical reaction?
The reaction may not go to completion because it is reversible.
Some of the product may be lost when it is separated from the reaction mixture.
Some of the reactants may react in ways different from the expected reaction (side reactions may occur).