2 reasons:

- this PR is 9 months old, so before the method was implemented in Symfony
- the JsonResponse is intended to be used by passing the data and letting the JsonResponse class do the ``json_encode`` call internally. But the view handler is already serializing the data as json so it woould encode the json string as json again if you use the JsonResponse class, which is wrong.