The wikipedia article for semi-recursive sets (formally titled "recursively enumerable sets") claims:
A set S of natural numbers is called recursively enumerable if there is a partial recursive function whose domain is exactly S, meaning that the function is defined if and only if its input is a member of S.
The set S is the range of a total recursive function or empty. If S is infinite, the function can be chosen to be injective.
Why in the infinite case can we demand injectivity for the function?
Supposed $F$ is a total recursive function that takes infintely many different values. Then let $G(n)$ be defined by
Then $G$ has the same range as $F$, and is injective.
Informally $F:\mathbb N\to\mathbb N$ can be viewed as a sequence of natural numbers. The above algorithm corresponds to removing the second and later occurrences of any output in the sequence. As long as there are infinitely many different numbers in the sequence, this still results in an infinite sequence, which will be computable.