Indirect Object Pronoun

I am learning indirect Object pronouns, and I find the following translation from Google translate correct.

I buy meat for you -Te compro carne

However why does the following not have the same pattern

I cook meat for you -Yo cocino carne para ti

submitted by /u/skr25
[link] [comments]