The definition of a representation of a group $G$ is a homomorphism $\pi: G\to GL(V)$. So here $\pi(x)$ is an invertible linear map $V \to V$.
The definition of a representation of a lie algebra $\mathfrak{g}$ is a homomorphism $\pi: \mathfrak{g} \to End(V)$. So here $\pi(x)$ is just a linear map.
What is the motivation for not requiring invertibility? Is this something with category theory?
Then what would $\pi(0)$ be? Since $\pi$ is a Lie algebra homomorphism, in particular it is a linear map, and therefore $\pi(0)=0$. And the null map is not invertible.
Besides, if $X\in\mathfrak g$, then the map$$\begin{array}{rccc}\operatorname{ad}(X)\colon&\mathfrak g&\longrightarrow&\mathfrak g\\&Y&\mapsto&[X,Y]\end{array}$$is never invertible (since $\operatorname{ad}(X)(X)=0$). But $\operatorname{ad}$ is the adjoint action, which is the natural action of $\mathfrak g$ on itself.