What is the purpose of nameof?

Version 6.0 got a new feature of nameof, but I can’t understand the purpose of it, as it just takes the variable name and changes it to a string on compilation. I thought it might have some purpose …