Why is bacon called bacon and cookies called cookies if you cook bacon and bake cookies?

Fact, Question