Kepler
Si certus es dubita
There are practicing attorneys that do that, and legislators are some of the least capable people out there from a technical standpoint. Not 100% sure that AI legislation is worse than lobbyist legislation, but either way no legislator is writing their own bills.
How Our Laws Are Made: A Ghost Writer's View
by Sandra Strokoff, Senior Counsel Office of the Legislative Counsel, U.S. House of Representatives[This article is an expanded version of one originally published by the author in The Philadelphia Lawyer, Philadelphia Bar Association Quarterly Magazine, Vol. 59, No. 2, Summer 1996.]
From insider knowledge I know of only one Senator who wrote significant parts of his own legislation based on his interests and expertise: Ron Wyden, for telecomm stuff. I talked to him and he knew his stuff and had a nuanced view of things. I should ask Dr. Mrs.
Coming out of Members' offices, staffers write everything not farmed out to SMEs or handed down by the party officials from ghostwriter firms like the link.
On non-partisan gears and cogs stuff, committee staff writes a lot.