On most firearms there is an extractor AND an ejector.
The extractor extracts the spent shell from the chamber.
The ejector will eject the empty shell out of the firearm.
It’s possible you’re missing the ejector or the spring that powers the ejector.