Speaker of the House doesn't have to be a member of Congress

The speaker of the House can technically be anybody – as long as they are nominated and receive a majority of votes by House members.