According to a popular fan story, the three don't know they're related—but they are. In this fan continuity, Sonic and Shadow share the same age and birthday, while Silver is a year younger. After a family tragedy separates them and Shadow loses his memories under Professor Gerald Robotnik's care, the brothers go years without realizing their connection, only crossing paths in the fan-favorite framing of Sonic the Hedgehog (2006).
Keep in mind this is fan-created lore rather than official Sega canon, but it's a beloved interpretation among the community.