are given to prevent failure of corpus luteum
which is required to maintain pregnancy till the development of the placenta
all women do not need this. only those women suspected to go in for failure of corpus is given.
i hope i have answered your query.
take care and congratulations on your pregnancy