An NPO (contrary to its name) is totally allowed to make a profit. The only difference here (and what mostly defines a non-profit) is that you cannot distribute the profit to the founders or board of directors.