Where did you get that idea? Windows 98 is still a default template in VirtualBox 7.0 and fully supported:
https://youtu.be/yxJDK5xmTFQ?si=5yJScYparrURTAWH
And here:
https://www.virtualbox.org/wiki/Guest_OSes
You just don't get accelerated graphics or USB sharing.