They licensed the browser for devices like set-top boxes and similar devices. There was also money coming from Google (for using it as a default search engine).
I guess they had also some business model built around Opera Mini and relations with mobile providers.