In these sentences the word "to" is a preposition not an infinitive marker, and it must be followed by a noun or noun phrase, in this case "helping them stay active and independent" or "helping them improve". The pattern may be more obvious in a case where the thing following is a simple noun, such as "You will see how crucial this is to the company ".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.