The first engines were atmospheric pressure, e.g. they used a vacuum to work. They were not closed cycle and they did not care about wasting water seeing as their purpose was to be a water pump. They didn't care about wasting coal as they worked at a coal mine. For the first century of their development they were stuck in the one niche where both the things they required were free.
https://etc.usf.edu/clipart/77500/77524/77524_newcm_stmeng.h...
An illustration that shows how they removed waste water from the piston. It was a century before high pressure engines were used, which were also open cycle and why steam trains released great plumes of steam when they moved.
The Aeolipile is exceedingly easy to reduce the steam outflow by having smaller nozzles. Given that they are basically a solid sphere made with four pipes sticking out they would have been the easiest form of high pressure engine to keep from exploding if there was a demand for mechanical work. They would however still explode, unlike the atmospheric engines.
The Greeks had steam engines.
https://en.wikipedia.org/wiki/Aeolipile
It's just that slaves were vastly cheaper. In Britain early steam engines were price competitive with horses only at the coal mine for the first century of their operation.