It's an adaptation of Captain Marvel's uniform that was, er, given to her by the Psyche Magnetron, and was the source of her powers, originally. That is, the costume was her powers. Once her physiology was altered to a human/kree hybrid, the costume sort of came out of the ether. Magical girl transformation is a good way to describe it. For a while she was just... manifesting her costume.