Why are ATMega8 and 168 more costly than 328?

A manufacturer once reminded me that cost and price are not necessarily related.