They only sell it by the metre for retail simplicity, they purchase timber by the tonne, determine their yield based on the losses through milling etc then convert to $/m for us dummies.
No different from calculating your hourly costing and charge out rates.