Imagine the frontend and backend teams are large and do not work closely. This allows the frontend to easily test their code without waiting for the backend team to implement the specific api. Even better that it allows them to test with actual http request/responses instead of just hardcoding data.
It would be great for learning client-side development using React, AngularJS, etc. without having to use an existing API or building one yourself.