If date of birth started being written in 19th century, how do they know when earlier famous people were born?

Bach being born in 1685. Vivaldi being born in 1678. Etc.

Updates
+1 y
Date of death will be known ense since they became famous. But date of birth?
If date of birth started being written in 19th century, how do they know when earlier famous people were born?
Post Opinion