There are some things we need to notice about
this event.

Jesus didn't normally use His powers for this
type of miracle. He fed them out of compassion.
(Matt.15:32) But following events show He had
a further purpose for it.

The news that John the Baptist (His cousin) had
been killed for the cause which must have remind
Him of His upcoming death.

This crowd had interrupted His plans of getting
alone with the disciples for rest and instructions
of His purpose for coming into the world.