The squirrel transformation was one of Free Realms' many cosmetic forms, and it came through the usual channels: an in-game reward, a promotional code, or occasionally the shop.
Which of those applied depended entirely on when you were playing. Free Realms ran constant limited-time events, and transformation forms were a favourite reward because they were pure novelty — no stat advantage, just a different silhouette running around the world.
If you are looking for one now, the honest position is that the game's live service ended, so any working code from that era has long since expired. Lists still circulate, but none of them redeem.