I don’t think any kind of capacitor is a semiconductor.
(But this approach fails on the temperature coefficient of resistance test: capacitor ESR increases with temperature while semiconductors have a negative coefficient.)
This is a very old package design from the transition between through hole and SMD. The process for making the vertical axial style common now hadn't been perfected and it was briefly cheaper to cast regular axial caps into an epoxy block.
No other component looks like this, it's a very distinct package and footprint from any other type of cap. No one tried to disguise anything, they really just thought this was the cheapest way to make a surface mount electrolytic cap.
Semiconductors actually are pretty stable long term.
The capacitors that go bad tend to be the electrolytic ones, and there aren't a lot of those on things like hard drives.