Littlest Pet Shop Online, the browser world tied to the toy line, used VIP codes to unlock pets, accessories and in-game currency. Players who never bought a tagged toy were left hunting for unused codes, which is a frustrating search by design.
Most codes were printed on physical merchandise or included with promotional packs. Each was single-use and tied to the first account to redeem it, which is precisely why lists of "unused" codes posted online are almost always exhausted before anyone reads them.
Beyond being expired, those threads are a common vector for phishing. A page promising a free rare pet in exchange for your username and password is trading on the desire of players who cannot easily buy the toys. No legitimate code ever required your login.
In-game events, daily rewards and seasonal promotions handed out pets without any purchase. If you are returning to the game, check whether the service is still operating and what its current reward structure looks like, since the original code system belongs to a different era.