Why is it called a ‘deck’ of cards?

‘Deck’ comes from Middle/Old English usage for a stacked, arranged set—similar to a ‘deck’ of boards. In cards it came to mean the whole stack of playing cards as a unit. The term distinguishes the complete set from single cards or hands dealt to players.