You do something good for another person. You are helping them. You are the one giving the help.
。
I'll help my friend with their homework.
に。
I bought a new game for my younger brother.
、。
There's no more time, so I'm not helping you any further.
、。
I'll give you a ride to the station later, so please don't worry.
、に。
My cat was sick, so I stayed by its side all day.