This can be caused by a number of factors such as outdated software or drivers on either end of the connection, incorrect settings in your computer or printer software, or even faulty cables or ports. Restarting both devices and checking for updates can often solve this issue.