>>17153640In a story it's so much easier to depict a trainer actually training their pokemon to use more powerful moves, as well as present a desperate situation where they call upon their inner will or whatever to execute a new attack.
I don't think I've ever read a story where TMs/HMs come in to play, despite them being canon in most (all?) mediums. It's just such a weird way of learning things, as the electronically malleable nature of pokemon is never really elaborated upon.