functions from the sample space to real numbers. On the other hand, the variable of integration ranges over real numbers, not functions.
Another reason may be that random variables B and C are fixed, even though they are unknown, while the variable of integration is supposed to range over an interval.
P.S. You may wrap LaTeX code in [TEX]...[/TEX] tags.