In Greek and Roman antiquity, midwives were a respected profession. We know from Hippocrates, the father of medicine, that he taught midwives.
In our regions, they could practise their profession freely until the late Middle Ages. But from the early modern period onwards, this changed. Men increasingly took over the work of women and were supported by legislation. Funny really, because male doctors actually had little experience when it came to childbirth.