Here's why:
* Series of items: The sentence lists three items (peas, carrots, and roast beef).
* Commas between items: When listing three or more items, you use commas to separate them. The last comma before the conjunction "and" is optional (called the Oxford comma), but it's generally considered good style.
Correct sentence: We are having peas, carrots, and roast beef for dinner.