The steerer tube and the stem have galvanically corroded together I suspect..
If you loosened the wedge bolt and banged on the end of it a little , when the bolt head had a little height above the stem
loosening the wedging action, then the stem would, otherwise, come Out.
Thousands of stuck seat post and stem posts have been archived Here.