I use bikes and trikes with wheels from 20" to 29". There are many good reasons to use small wheels. Strength, rigidity, packaging, overall bike size, rider and cargo weight distribution, gearing, hub motor speed/power/efficiency matching, and so forth. All else equal or if none of those factors apply, bigger wheels verifiably work better. I wish 32 and 36 inch wheels were more common and affordable. We could benefit from them so much more than 27.5 inch, which is a solution in search of a problem.
If we were riding on 1970s or 1980s American pavement, and we were all 19th century size, then 700c would be a totally okay maximum size. But we are not, and we are not.