An probable explanation can be organisms needed to survive but I think that alone can't be a reason for intelligence to evolve. Something other than survival might have motivated for the evolution of intelligence.
EDITED: @Artur, I would like to define intelligence as not efficient search (considered by computer scientist) neither prediction (said by Jeff Hawkins) . It is the principle that follows three fundamental things:
*Minimum Energy
*Least Action Principle
*Minimum Space