because in spanish the infinitive form (cuidar) replaces the gerund form we use in english (taking care of). for example we don't say, "thanks for you take care of me" we leave it in the gerund form. the formula is the same in spanish. It's always in the infinitive. Gracias por ayudarme, gracias por escribirme etc. I hope that's not too confusing of an explanation.