To be fair Boeing doesn’t know how much an airplane cost.
If you know (because you have blue prints) that the materials will cost 1,000,000 to build the plane (because your suppliers gave your price quotes), you can have a very good idea of what that plane will cost before putting it on the assembly line.