They could have hired more developers, returned the money to doners, increase the salary of their employees and what not. The only thing they can not do is give the money as dividend to the owners the way for-profit companies do all the time.
Mitchell Baker has spoken many times publicly about why she chose the NPO structure for Mozilla. It was due to the Browser Wars of the 90s (when she was counsel at Netscape) and not wanting to go through that again.