Can laundry detergent stain sheets?

My bed sheets went into the washer without stains and came out with stains. I use gain.

I washed them a second time in stain remover and the stains won’t come out and it’s really making me mad. These are brand new sheets I promise they went into the washer spotless. These stains cover the entire bedsheet and pillow cases there’s no way I would have been able to even make that type of mess😒 lawd help