Among all apps that do $1M ARR, the share that got there through particular software expertise that only few people had, has been exceedingly small for a very long time now.
Another similar but different point: no software development expertise doesn't mean no other expertise. As an extreme example, good luck building tax software with zero tax expertise. This applies to tons of niches.
A third point - lots of this increase in apps is from people who do have software expertise. They're now just able to create things they didn't have the time for, despite their expertise.