As a new user of the iPhone if you wondered about the notification silenced feature then don't be troubled because this a new feature which is launched by the iPhone to enhance the experience of its user.
You are getting the notification because your friend or someone who is in your contact list has activated this focus mode feature and he will never get any notification until he wants to. It is very helpful when you are doing a task that needs no distraction.
Read more about this feature: https://ityug247.com/notification-silenced-messages-on-iphone/