Currently, the texture can only be specified in the Sample Texture node. Having a socket for texture data-blocks allows for more flexibility.
In the same go, we can also add a socket for material data-blocks, which will be used soon (D11155).
Depends on T88176.