apart from the excellent explanation given by Knuto, it can happen, especially when talking about engine parts, that a certain material/alloy is chosen instead of another, considering they have the same properties, to change the overall balance of the car and its weight distribution.
consider the rear part of the car is already designed to be as much lightweight as possible, but that the weight distribution is too biased to the rear part.
even if this means adding weight, it's better to have an heavier car with a good weight distribution than one with a poor weight distribution and perhaps a dangerous handling (especially considering common cars).
So sometimes the engine is made heavier than what was possible in first place to recover a bad weight distribution. Considering the additional weight is going to be at the front part of the car, it would result in a more evident understeer, commonly regarded as safer than a too happy to move tail.
I had an exam on the 22 of Dec about this matter (materials and their production), but unfortunately the teacher wasn't interested in explaining the subject, the material provided was, well, insufficient, and at the written exam was allowed to copy from books and other students.
pretty weird.
the result is that I don't know that much about this (and I'm still waiting for the result of the exam).