As said Dr Muahammad Tanveer Munir - it is just host specificity. Every virus has a list of species which can be hosts. There are some viruses with very high host specificity like HIV, there are viruses with low selectivity, there are some incredible strange cases when a virus can replicate both in animal (insects) and in plant cells (Tospovirus etc.).
In a nutshell, viruses have specific surface proteins, these proteins can bind to the receptors on the surfaces of cells. Cells need the receptors to bring in a range of things into the cells, and viruses have evolved to bind to some of these. So if you think of the receptor as the head of a screw and the virus as a screwdriver, depending on the size and type of the screw and the size and type of the screwdriver, some will fit and others won't. Same thing is true for virus surface glycoproteins and cell receptors.