When $f$ is merely continuous, we can make $f$ be a sequence of disjoint triangles of a fixed height, say $1$, and a decaying width, say $1/(2n^2)$. Then the integral of $f$ is $\sum_{n=1}^\infty 1/(4n^2)<\infty$, but there are arbitrarily large points where $f$ is $1$. We can make this even worse; for example we can make the heights $n$ and the widths $1/(2n^3)$, and then $f$ isn't even bounded. We can repeat this argument with your constraint that the codomain is $(0,\infty)$ in a number of ways. For example, we can make the $n$th triangle start at $1/(2n^2)$, rise to $1$, then fall to $1/(2(n+1)^2)$, then stay there until the $(n+1)$th triangle begins to rise, etc.
The problem here is that the triangles are allowed to shrink in width even as they stay the same size in height. When $f$ is uniformly continuous, this is impossible: if there are arbitrarily large points where $f>\varepsilon$, then there are infinitely many disjoint intervals of a fixed width $\delta$ where $f>\varepsilon/2$. From this we conclude $\int_0^\infty f(x) dx \geq \sum_{n=1}^\infty \varepsilon \delta/2 = \infty$.