“Yahweh came and stood.” This scripture only causes confusion because people are taught that no one can see God, but that is not the case. God loves people and occasionally comes into concretion in human form to relate to His creation just as angels, who are normally invisible to us, sometimes make themselves visible. Just like we see God described as a person in Daniel 7:9-14, he comes into human form in other places as well. Here he came to Samuel in human form.
[For more on God appearing to people, see commentary on Acts 7:55.]