Now that almost all dev work is going to be remote friendly, The only advantage to freelancing that I can see is the flexibility to work less than 40 hour weeks, or take more time off than vacation time you're allotted.
That freedom is purchased with a lot of stress and uncertainty, and may not actually result in that much freedom if you're semi-actively always looking for leads.
Ultimately I found the type of work companies go to freelancers for is terribly uninteresting most of the time.