It's actually not Mew, Smeargle can learn all moves (that can still be used) via its signature move, Sketch.
Smeargle's best use is to have a moveset that any other pokémon would have.
Keep in mind, if you forget a sketched move, you cannot relearn it, you must copy it again.