As I have mentioned in other posts here, quite a few paintings of the Virgin and Child show the infant playing with this very anachronistic accessory, probably because it gives the painter a chance to emphasize the Holy Child's humanity -- anyone who knows babies knows beads are the sort of thing they love to play with (and chew on).