Karam produces result. Thats what we take as an axiom, no ?
So if I do good karmas (charity, being kind , grateful, believing in god, serving in gurdwara, etc)
then I get joy which gives my mind happiness !
On the contrary, if I do bad karams , I get suffering which gives my mind sadness ...