Question: how long are federal judges appointed for and why is this?
Answer: Tenure and salary "Article III federal judges" (as opposed to judges of some courts with special jurisdictions) serve "during good behavior" (often paraphrased as appointed "for life"). Judges hold their seats until they resign, die, or are removed from office.