They are mostly just taking advice from lobbyists who know very well what they are trying to do. A lot of bills are written by the lobbyists themselves. This is why it is so important to donate to causes like the EFF and ACLU. They are often the only other voice in the room.