In some ethnic groups, during some time periods, it was common to use the names of deceased children for children born after the child had died. A couple could easily have had four children with the same name as one of my ancestral couples did. The last child fortunately survived, but the first three did not, dying shortly after birth. Genealogical software programs typically flag these types of children–thinking you have simply entered in the same child multiple times with different vital event dates. While today this practice is not usually done, there was a time when it was commonplace and don’t immediately assume that a researcher has made a mistake when they indicate a couple had repeated children with the same first name.
Like always–do a little bit of research first.