Trainer points are an unlock currency — you spend them to open up content that would otherwise stay locked.
Exactly what they buy depends on the game using them, since "trainer points" is a label several titles have borrowed for their own progression systems. In most cases the practical advice is the same: hold onto them until you've seen what the top tier offers, rather than spending early on minor unlocks.