Why trifling, frivolous not correct here? wouldn't it mean unnecessary gifts, which matchs the context?

Trifling and trivial mean ‘of little importance’

If an absent father gave ‘trivial/Trifling’ gifts to his children, would he be making up for his absence or reinforcing it?

Now that you’ve mentioned ,I get what are you saying but think of it like this: If Father was absent for a long time, any type of gifts would be almost value less to make up for that, right?

No, we don’t know that for sure.

We’d be going beyond what the prompt says.

The prompt is about the intent of the father.

He was absent, so he bought _____ gifts to make up for his absence.

To compensate for his big mistake (absence), he bought lots of gifts to balance out his mistakes.

'“The prompt is about the intent of the father.” thanks a lot , It makes more sense now. I was making up stories, my bad