It is optional to eat those foods for the vast majority of people, but it isn't as convenient.
It does require spending a little time cooking and probably to shop around rather than getting everything from a (possibly overpriced) supermarket depending on how much you can spend. So it's strictly an inconvenience, it requires stretching the argument really thin to view it otherwise.