Because it is likely to give too high a price to be profitable for the other division to buy, and if the other division doesn’t by the the selling division won’t produce.
It is profitable for the selling division to produce provided the transfer price is anything above the marginal cost (given that there is spare capacity).
Have you watched my free lectures on transfer pricing?