Why use a framework instead of an engine?

For those who are using a framework, I'm curious to hear your reasoning why choose it over an engine.

To me it seems like a lot of unnecessary work reinventing the wheel. Coding stuff that comes packaged in game engines, such as level editor, etc.

I wanna hear your thoughts.