Because in rest, urls are supposed to specify a resource, but now your response is a resource and some other resources too.
Not saying that being pure to rest ideology is a good thing. I think it’s a terrible fit for most applications more complex than a demo todo app