With no standings to base the 2005 NHL draft on, they used the following lottery instead (quote from Wikipedia):
Teams were weighted based on playoff appearances in the last three completed seasons (2001-02, 02-03 and 03-04), and first overall picks in the last four drafts (2001, 2002, 2003 and 2004). Three lottery balls each were assigned to teams which had not qualified for any of those playoffs and received no first overall picks in that period. Teams which had one playoff appearance or first overall pick in those years were given two lottery balls. All other teams received one lottery ball.
Because the Capitals had a playoff appearance in that timeframe (01-02) and won the lottery in 2004, the team only had one ping pong ball. Pittsburgh received 3 (they traded up for MAF but did not win the lottery and their last playoff appearance was 00-01). Buffalo, Columbus, and New York (R) also had 3 each.
I will not say it was rigged for Pittsburgh, but the rules were crafted in the worst possible way for the Capitals.