Everything is working correctly. It shows this way because the object was selected beforehand.
It will also show this way (hidden render) if you use the Outliner to select any hidden object.
Users can also use View > Hidden Objects to globally display hidden objects as you’ve shown.