In Europe during the Middle Ages, the “cold shoulder” had two purposes.
If guests overstayed their welcome they were often served cooked but cold beef shoulder at every meal until they tired of the bland diet and left.
The other “cold shoulder” was leftover mutton that was saved to give to the poor to discourage them from begging at the pantry.
These days, getting “the cold shoulder” means being snubbed.