Answer
The butterfly began as a male XX zygote, but nondisjunction in the first cell division gave rise to the other side of the body with a single X chromosome. This side was, therefore, female, leaving the right side with XX chromosomes and, therefore, male.
Work Step by Step
Review the material on nondisjunction, and see that the question contains a hint in its description of the butterfly sex chromosome system.