Your suggestion is interesting but I am not convinced that a student would be helped by aligning the examples with their interests. I could see a student asking how trig relates to computer games and the example the LLM generates becoming much more involved.
I see no problem with the examples being boring. The people that developed these techniques had such fundamental problems to solve and the wonder to me is the human mind that came up with these methods.
All this to say, maybe we lack appreciation for the fundamental sciences that underpin every aspect of our modern lives.