0 is both purely real and purely imaginary. The given set is purely imaginary. That's not a contradiction since "purely real" and "purely imaginary" are not fully incompatible. Somewhat similarly baffling is that "all members of X are even integers" and "all members of X are odd integers" is not a contradiction. It just means that X is an empty set.