Thinking outside the box is commonly used metaphor for creativity or coming up with new ideas. Some problems indeed require a new perspective to get them solved. But sometimes the box is all you have. You are inside the box and there is nothing out there.
Working within limits can boost creativity as well. When you have limited resources you need to come up with new and effective ways to use those scarce resources. And keeping inside those limits often lead to more efficient solutions as well.