I ran an injection die cast machine for a couple weeks making lawn boy mowers, aside from the danger of being burned up and hot all year round not a bad gig. It paid well.
Those dies are constantly being repaired by welding and machining. Parts stick in them, the ejector pins make the round marks inside the castings. The dies must not be too hot or too cold. You spray a water oil mix between injections, if one part of the die gets too cold you get a cold lap or a pocket, if it isn't cool enough when the die opens you get a smear, if the inserts aren't perfectly seated you really mess things up when it tries to close.
Long story short, all the funny marks in a part are due to all or some of those things happening. Any part I made that didn't pass QC got re-melted and put back into the pot. No repairs on those parts, it was quicker to melt it and try again. I'd imagine sand casting has core shifts and similar issues, I got a tour of a cast iron boiler plant and the sand molding was amazing.
They had a design flaw and I got laid off, went back to Butler Mfg, picking nuts and bolts for pre-fab buildings. I missed the pay but not the molten metal stuck to my shoe, shirt, hat, hair, etc.