With many UBs, there designs don't usually follow their typing (with some execptions). Sometimes it also depends on their origin. But, because of the lack of information about this Pokemon, I can't say why it is a ghost type and not another type. But, in my opinion, UBs are supposed to be out of this world Pokemon with some uniqueness to them. So, it may be a ghost type for the reason of being original and unique.