Byproducts form due to a variety of reasons including incomplete reactions, competing reaction pathways, and side reactions. Even when a catalyst is designed to be highly selective, real-world conditions such as temperature, pressure, and the presence of impurities can lead to the formation of byproducts.