This is a soft question.
Let $V,\rho$ be a representation of the lie algebra $\mathfrak{so}_3(\mathbb{R})$. Then if I understand everything right, $V$ is necessarily completely reducible, because the representation $$\rho:\mathfrak{so}_3\rightarrow \mathfrak{gl}(V)$$ is the derivative of a representation $$P: G\rightarrow GL(V)$$ where $G$ is either $SO_3$ or its universal cover $SU_2$. Because the latter is compact, there is a $G$-invariant inner product on $V$, obtained by beginning with an arbitrary inner product and averaging it over $G$ with respect to a Haar measure. Then the orthogonal complement of any $P$-subrepresentation of $V$ will also be a $P$-subrepresentation; thus $V$ is completely reducible as a representation of the lie group $G$. But a $P$-subrepresentation is also a $\rho$-subrepresentation and vice versa, so $V$ is also completely reducible as a representation of the lie algebra $\mathfrak{so}_3$.
Here's what's bugging me. In my mind, the fact that any representation of $SO_3$ is completely reducible is a consequence of the topological fact that its universal cover is compact, as in the above paragraph. But this same fact is reflected in the representations of $\mathfrak{so}_3$, which does not have any topological differences from any other three-dimensional lie algebra. So the topological information about $SO_3$ must be being captured in purely algebraic information about $\mathfrak{so}_3$.
What is that information? And how is it related to compactness?
Apologies for the softness of this question. I am unsatisfied but I am not sure in advance what kind of answer will satisfy me. Any thoughts you have for me are appreciated. Thanks so much.
Unipotent groups are never compact, and clearly the Lie algebra does not detect compactness for tori, so let's restrict to semisimple $G$. By Sylvester's law of inertia, the Killing form on the Lie algebra $\mathfrak{g}$ of $G$ can be diagonalized with diagonal entries equal to $1$, $-1$, or $0$. By Cartan's criterion the Killing form is nondegenerate, so no $0$s appear, and I claim that the Killing form is negative definite (i.e. only $-1$s appear) if and only if $G$ is compact.
If the Killing form is negative definite, then minus the Killing form is a $G$-invariant inner product on the adjoint representation $\mathfrak{g}$. This means that the action map $G \to \text{GL}(\mathfrak{g})$, which has finite kernel, lands in the (compact) orthogonal group for this inner product.
Conversely, if $G$ is compact then by a standard averaging argument we can find an inner product on the adjoint representation $\mathfrak{g}$ which is $G$-invariant, and in particular $\mathfrak{g}$ acts on itself by skew-symmetric transformations, i.e. $\text{ad}(x)^{\top} = -\text{ad}(x)$. But now for $x \neq 0$ we have $$\text{tr}(\text{ad}(x)\text{ad}(x)) = -\text{tr}(\text{ad}(x)^{\top}\text{ad}(x)) < 0.$$
Edit: In the negative definite implies compact direction, I should explain why the adjoint representation has finite kernel, since the way I said it might be confusing. The kernel of the adjoint representation is the center of $G$, which is discrete, having trivial Lie algebra. Thus the adjoint representation is an isogeny onto the image of $G$, which is a compact semisimple group and therefore has finite fundamental group.