Just an observation based on what I've seen
1) Officer selection has gotten more intense even over the last year to the service as the recession has spiked applications. What your buddy got in with in a board earlier may not cut it now.
2) They're at the point of commissioning NROTC grads designated flight to the IRR because pilot is so backed up, people the Navy has spent money on training.
3) You may know your friends ASTB scores, but there is so much more to selection. It's a whole person concept, I've seen many people who I thought were qualified denied for one reason or another and others who I thought didn't have a chance get selected. Only known formula for almost garunteed selection would be 9/9/9, 4.0 GPA in Electrical engineering, vollunteer firefighter who is also a big brother for a combined total fo 80 hours of community service per week, a stellar statement and LORs from those on high.
So, the only thing you can do is pick yourself up, not worry about why you weren't selected, and move on to what you can do to improve yourself to get selected. Not the same program, but I applied many times to STA-21 NFO before selection (an enlisted commissioning program. Only 1 board held per year). Every time I wasnt selected, I worked to make myself and my package look better for the following year.