I think that you get apostrophes used in situations like p's and q's simply because ps and qs can mean other things, and we English speakers don't like to have to work out what a word means from the context. CDs or DVDs are self-explanatory since there are not two potential meanings.

This is just an opinion!