I don't understand the problem. Did you test the different options to see what happens? I don't see any error. It seems like you are asking why SAP configured the optimizer to consider shelf life the way it does. We can't answer for SAP. But SNP optimizer does consider shelf life and does calculate costs for the various options available to you. It is best you play / test the system to figure out the logic.
Ken