I assume you're talking about a ranger's animal companion, from Martial Power.
They do gain attribute bonuses at 4th, 8th, 11th, 14th, etc. levels, just like characters. However, according to the formulae in the book, their HP, attack bonuses, and defenses are based purely upon their level...