They use The Economic Analysis Method to assign an monetary value, because it is often difficult to assign a value. This approach ( The Economic Analysis Method) states that, the patents value is the replacement cost, or at least the right amount to replace the protection right on the invention.
I hope this answered your question! :^)