to print to a printer a device needs
to install a driver software from the printer maker so the device will know how to communicate with the printer
operating systems such as osx comes with a wide range of such drivers or you can get the driver from the printer makers website or a cd is included
as drivers are not an option for small storage devices such as ios devices apple made a generic driver model so the printers could follow it and all ios devices would be able to print on them
but the printer is required to support this
many printer makers make normal printing apps for their non airprint supporting printers that you can download for free in app store