Why the Bullet is not destroyed when touching the Walls of the platform?

image

yes I have used Debug.Log(other); at OnTriggerEnter2D method and have taken the screen shot of the results.

I have also used the Debug.Log(other); at OnColliderEnter2D method and have taken the screen shots of the results.