upvote
An image is immutable, many Dockerfiles are not idempotent. Running them multiple times at different times can lead to different results easily.

Building every time takes a lot of time. Both on download and execution time.

Also when building an image you may need to have access to resources that are unavailable where you actually want to run the image. So I see definitely reason for both to exist.

Or am I misunderstanding your point?

reply