Here are slightly less degenerate examples of positive random variables $X$ and $Y$ such that $E(XY)$ exists but $E(X)$ and $E(Y)$ do not.
Let $U$ and $V$ be independent random variable such that $U$ is Bernoulli, for example $P(U=1)=P(U=0)=1/2$, and $V$ is not integrable, for example $V\ge1$ almost surely and $P(V\ge v)=1/v$ for every $v\ge1$. Let $X=0$ and $Y=V$ if $U=0$ and $X=V$ and $Y=0$ if $U=1$. Then $XY=0$ hence $XY$ is integrable but neither $X$ nor $Y$ is.
Or: let $Z$ be an almost surely positive random variable such that neither $Z$ not $1/Z$ is integrable, for example $Z$ has density $\frac12\min\{1,1/z^2\}$ for $z$ in $(0,+\infty)$. Let $X=Z$ and $Y=1/Z$. Then $XY=1$ hence $XY$ is integrable but neither $X$ nor $Y$ is. Note that $Z$ can be realized through $U$ defined previously and an independent random variable $W$ uniform on $(0,1)$, as $Z=W$ if $U=1$ and $Z=1/W$ if $U=0$.
Edit While I was writing the above, the OP mentioned that $X$ and $Y$ should be independent. Recall that if $X$ and $Y$ are nonnegative independent random variables, the relation $E(XY)=E(X)E(Y)$ always hold in $[0,+\infty]$ (with the obvious multiplication rules plus the fact that $0\times(+\infty)=+\infty\times0=0$). In particular, if $X$ and $Y$ are independent, $X$ is not integrable and $Y$ is not almost surely zero, then $XY$ is not integrable.