I think that the average value of a function (by default) is unitless, because values of a function are unitless, and taking the average of these values shouldn't require putting some units in front of it. For example, if I asked you what the average of 1, 2, 3, 4 and 5 is, the answer would be 3, not 3 units.
Another way to look at it is that the average value of a function in the interval [a, b] is the value of the constant function which when integrated over [a,b] gives you the same result as integrating the original function over [a, b]. This is to show that the average value is just a number - you wouldn't write f(x) = 3 cm^2; you would write f(x) = 3.
In some sense, it's the 'real-world' information provided along with the function that determines the units. Consider a function, f(x) = x^3, dom(x) = (0, inf). While I can use this function to calculate the volume of a cube of side length x, that doesn't really mean that f(2) = 8 units^3. This is because the function f(x) = x^3, dom(x) = (0, inf) doesn't really have an intrinsic real-world meaning until we place some on it (by noticing that this function would be good at letting us calculate volumes of cubes, for example). Even though many functions have been inspired by real-world phenomena, at the end of the day, the functions are not intrinsically linked to them - they can be used as context-free mathematical objects, and hence do not require units. As another example, the average velocity of a car that uniformly accelerates at 1m/s^2 from 0m/s to 10m/s will be 5m/s over the first 10 seconds. But the average value of y = x over [0, 10] is just 5.
I suppose as a final comment, consider a (single-variable) function that maps from the real numbers to the real numbers (f: R -> R, f(x) = blah). What this means is that the function takes in a real number within its domain (this is the point of the first R), and spits out another real number (this is the point of the second R). What I'm trying to get at is that the function just spits out numbers without any units. Hence, the values of functions are unitless, and hence the average value of a function is unitless too.