Slight misunderstanding.
It's not because they're learning how to envenomate their prey, they are fully capable of doing that from day one. It's the fact they're so small..They are food to birds etc when they're little, so a young venomous snake is going to inject as much venom as it possibly can into someone/something that it thinks is trying to eat/harm it.