Yesterday I finished a DIY rooftop installation. I went DIY partly because I shared your concern, and mostly because I thought it would be fun. I have thoughts.
My quick take is that there is enough competition to ensure reasonable prices for solar equipment (panels, racking, electronics, etc.). However, a lot of manual labor goes into a rooftop installation that's comparable to other trades like plumbing, electric, roofing, construction, etc., which means that if your local cost of living is high, then the labor cost will be high as well. Until we have robot labor, I accept that other people need to put food on their tables as well, so I don't think that a lot of overhead in a solar project's cost beyond the materials is necessarily evidence of exploitation.
This means that you can online-shop and build a cheap system (I'm sure under $2 per watt is easy). But it needs to be shipped to you, lifted onto the roof, mounted, and finally wired to your grid. All that is pure labor. I did everything except the high-voltage wiring and the conduit runs, and I bet a competent version of me could have done everything I did in three 10-hour days (it actually took me twice that). Where I live, California Bay Area, you can't get any tradesperson out of bed for less than $100/hour, so that's at least $3,000 in labor. The electrician, permitting, and re-patching the roof around the new mounts added another $4,500 -- again, mostly labor and/or bureaucracy.
That makes about $7,500 to install maybe $10,000 of equipment. I avoided about $3,000 in labor costs by spending at least 60 hours of my own amateur time, including mistakes, worrying, second-guessing myself, and other activities that a professional wouldn't have done.
I learned a lot. I understand the difference between microinverters and regular ones; I know more about split-phase residential electricity in the US; I appreciate how a system design trades off cost and efficiency for issues like "clipping" when an inverter can't handle the full output of a PV panel; and I know way more than I ever wanted to know about the foam, insulation, tar, gravel, and wood that make up my roof.
In retrospect, I'm glad I did the project because of the knowledge gained, and because I now have even more respect for the skills and effort that are needed to put solar on a home's roof. But would I do it again? Probably not; I'd rather have paid the extra few grand to have someone do it for me while I stayed cocooned in my office, writing code.
TL;DR: profit is being made in residential solar, but I believe most of it goes to honest labor.