Article I section six of the Constitution protects member of Congress from arrest while they are in session except for treason or felony. The reason is so the executive can't just have them arrested because he doesn't like the way they are going to vote.