Providing them less desirable—to humans—-scraps would have likely prevented competition with them in hunting game. Why hunt living game if you can wait around and get scraps for free? So original intention of humans likely not domestication, but still leads that way if the wolves get what they want.
So humans give them food so they don't compete with humans in hunting. The wolves would get full from humans, don't have to hunt, and spend all their time reproducing, which will create even more competition for humans.
ok, so Grug and team know they can take wolves (spears), wolves know they can eat and not be bothered by Grug and team by eating cast off bones/scraps because all of their relatives that went to steal food from Grug didn't make it, but the ones that ate the scraps and were chill with Grug and Grugette ended up making it until Grug Jr.^3 and by then had decided to be on the same team as Grug Jr.^3