Most wifi routers have a setting that does not let wifi devices see each other, only wired devices. It’s a security feature designed to prevent devices that gain access to your network from getting into other devices.
Changing that setting varies depending on your make and model.
If you don’t know how to manage it, you should still be able to enter the IP address of the printer manually to establish a connection.