Because, the cake that was put into the oven was baked therefore changing its form and cooking the ingredients inside. The cake that was left out on the counter top had no changing factors because there was nothing being done to the cake, therefore remaining in its un-baked state.