It can't be -y, because coś is neuter.
The question remains why -ego not -e then. And the answer is: because it is so. Adjectives with coś are usually always in genitive, regardless of case coś is in.
Note that ktoś is masculine and with it, the case of adjectives always matches.