Why does this code work correctly
<img src="<?= $page->image('back.webp')->url() ?>">.
and this code must include toFile() in the path for it to work
<?php foreach ($page->containerB()->toStructure() as $test) : ?>
<img src="<?= $test->image()->toFile()->thumb(['crop' => true, 'width' => 260, 'height' => 180, 'format' => 'webp'])->url() ?>"
<?php endforeach ?>
I would very much appreciate an explanation