The phrase "nice to know" is an idiomatic expression that means it's good or helpful to have information, knowledge or understanding about something. It can be used in a variety of contexts such as when someone shares news with you and you respond by saying "thank you for letting me know," indicating that having the information was beneficial.