It is as often difficult to give authoritative answers to the historical why-questions. Sometimes it can be pure chance and sometimes it is market pressure, sometimes a bit of a chicken and egg story.
The usage of aircraft engines for smaller aircraft with opposed cylinders, aircooled and non geared was in place before the WW2. Two exemples are Cessna that had the 120 and 140 that progressed into 150 and later 172. Piper had what became the L4 or later known as the Cub. Several other manufacturers used the same type of engines. Of course other types were in use, but these are some of the most successful ones. Successful because they were relatively cheap, available and good enough.
If we look at the environment these engines work in an airplane the aircooled boxer directly coupled to the propeller makes sense. Aircooling avoids all the extra complications from water cooling. It keeps the engine simple, reliable and easily serviceable. Not having reduction gears removes one great liability as to reliability. This requires that the engine should have a low RPM, say below 2500 RPM. The reason is that otherwise the tips of the propellers may move faster than the speed of sound in air which creates a lot of problems. The boxer setup additionally leads to a shorter crankshaft compared to an inline arrangement, again giving higher reliability. The shorter engine makes for a shorter cowling which adds to visibility compared to an inline engine. The flattened engine adds to visibility compared to radial engine.
But in the end it seems to partly go back to the chicken and egg situation. The smaller aircraft used boxer engines and hence after the war there was a market for smaller boxer engines. And as the boxer engines was on the market, new planes was designed for them. They were good enough for the purpose, available at reasonable prices and reliable. Not a bad combination of factors at the time.