You’re paying for all kinds of things in that markup, including labor warranty. Sometimes the parts they buy are faulty out of the box, or fail shortly after installation. The shop does get the part replaced for free from their supplier, but they have to eat the labor cost of replacing the part a second time for free.