Magic.
Some things, even I can’t figure out…
Smeargle does live in the Ruins of Alph, which might suggest some connection with the Unown – if he’s somehow able to tap into their ability to alter reality by painting sequences of Unown sigils, that might explain it… but I’m afraid that’s all I’ve got.
