The soapy flavor defect in Gulabjamun arises when excessive baking powder is used in the dough. Baking powder contributes to the chemical leavening process, and an excess amount leads to an off-flavor reminiscent of soap. Ensuring the correct proportion of ingredients is critical to maintaining the authentic taste of Gulabjamun.