If they do that, then they are introducing teleology into biology. In the philosophy of science, that's problematic. Yet biologists do it all the time. (Why do animals have eyes? To see! Why do they have hearts? To pump blood!) There are even those who argue that biology is impossible without teleology. (I'm not sure what my view is on that.)
I think that writing teleologically is mostly a convenience for biologists. It's a shorthand. The processes of evolution are well understood, and working biologists understand that genes (for example) do not have conscious goals.
At one level, of course, it is quite reasonable to say that eyes are for seeing. Put more strictly, eyes tend to give an animal an survival advantage because they allow it to see. That advantage tends to increase the chances of reproductive success, which is all that genes ever really "care" about (and you'll note the incorrect teleological language there, too, no doubt).
It is common to talk about genes
for this or that. In practice, what is meant is that if you
lack this or that gene, then you'll also most likely lack whatever it is that depends on the gene being there. Single genes rarely have just one function, and all genes work in tandem with the other genes. Then there are the epigenetic factors to consider, and so on and so forth.
Why do animals have eyes? Ultimately, it is because the ability to sense light gave the animal's distant ancestors a survival advantage, so the trait was passed down through the generations. Over time, mutations and copying errors led to the development of the complex eyes we see today. In fact, it seems that eyes of one type or another have evolved completely independently over the course of evolutionary history.
Take another example: the sickle-cell gene mutation. Why do some people have it? One answer is that it improves their resistance to malaria. So is the sickle-cell mutation a gene
for malaria resistance, then? Did it evolve because human beings need malaria resistance? The technical answers are: no and no. Obviously there is no teleological
reason a mutation occurs - it's random. Do giraffes develop long necks because they need them? No, that's silly.
Natural selection works on natural variation in genes. Those variations that improve survivability and increase reproductive success, on average, tend to remain in the gene pool. Those that are harmful tend to be eliminated. Those that are neutral can go either way.
The sickle-cell gene tends to make people more anemic, at the same time as protecting them (to some extent) from malaria. So should we talk about the gene as being a gene for malaria resistance, or for anemia? It seems like it's both. Why do some people have it? Answer: to make them anemic. Or: to make them more resistant to malaria. Or: just because it proved beneficial enough - and not too detrimental - to their ancestors that it was passed on to them.
To give a similar example: I've been taken to task once or twice for talking about inanimate objects as if they were conscious. Specifically, I sometimes talk about atoms or electrons as "wanting" to do this or that - like "It wants to be in the lowest allowed energy state". Some people complain that I shouldn't talk that way, because an electron obviously doesn't "want" anything. But my talking that way doesn't mean that I lack the understanding that electrons aren't conscious little pixies. Rather, when I talk that way it's a convenient shorthand to describe what the electron is doing. If somebody follows up by asking
why an electron would go to the lowest energy state, or whatever, then I am able to provide them with an appropriate description of the energy considerations, the relevant physical laws, and so on.
Here's why such shorthand is useful: it allows us to examine processes at a higher level of abstraction, to concentrate on the novel or important features of the thing under consideration, rather than having to re-iterate well-understood and accepted foundational ideas every time we talk about something. If I say that a tossed ball wants to take the path that minimises the action, then unless I need to I don't have to go into what "action" is or why it is minimised. I can just concentrate on the problem at hand, namely the motion of the ball.