How hello world container is printing the welcome text?

I have read somewhere that the hello-world docker image is from scratch so it doesn’t have a shell then how it is executing the hello executable file ? Don’t we need a shell to execute a file ?

Source: StackOverflow