Emasculation is necessary to ensure that only the desired pollen grains are used for pollination and the stigma is protected from contamination (from unwanted self pollen). The anthers are removed followed by bagging so the plant now behaves as a female plant. The pollen grains from the anthers of the desired male plant can be dusted on the stigma of flower of the female plant to obtain desired results.
Emasculation is not required if the plant produces unisexual flowers.