Blue Spider Lily bloomed near the Kamado family’s home, with Tanjiro being shown its location by his mother.
Tanjiro was the only kid who saw the flowers open, but that doesn't mean his brothers and sisters never saw them.
It's possible that Nezuko could have seen and eaten the Blue Spider Lily, which would eventually result in her becoming immune to sunlight as a demon.