They used to be separate occupation codes, but they were merged in 2005 (https://usa.ipums.org/usa/volii/c2ssoccup.shtml). Perhaps because there weren't enough legislators to justify getting their own category, so they got lumped in with the closest other profession?