There is no technical reason. There have been rear-engine gas motorhome chassis and rear-engine gas passenger coach chassis in the past, and there are rear-engine LPG and CNG coaches running today.
Why you don't see them in RVs is probably a market issue, the last one offered was not well accepted, it was almost as expensive as the same class of chassis with a small diesel engine (e.g. the leaf-spring Roadmaster). That was also a market flop.
Really, the difference in cost from rear engine gas to the lowest cost diesel Freightliner is less than the difference in cost from the Workhorse W-22 to the Workhorse UFO. I think if buyers are willing to pay the cost of getting a rear engine, they are usually willing to go a little further and get the rest of the advantages (air springing, air brakes etc) of a low end diesel pusher.