Fashion and food were traditionally not protected by patents because to make a cake or a dress, one only needed an oven or a sowing machine. On the other hand, complicated manufactured goods needed patent protection because the factories needed to produce them would cost millions to build, and a small inventor could never raise the money without patent protection.
In the age of computing, the cost of the equipment to create software is negligible, so it's far more optimal to not grant patent protection.