In the old times, roasted items saw the fire pretty clearly, but baked goods didn't. Typically, a roast was cooked in or in front of a fireplace, while things which were baked were cooked in an oven or spider (usually in the same fireplace). In physics of cooking words, "roast" meant heat was transferred via proportionally more radiant energy, while "baked" meant the transference was by relatively more convection energy.
But now, alla time same same. We stick with the old terms for no particularly good reasons, other than linguistic habit.
We talk about "roasting" meat and "baking" bread as though it were meaningful, even though they might be done in the same oven, on identical sheet pans, at the same temperature, and at the same time. Human beings and their languages. Oy.