crib wedge pillow

I was gifted one of these at my shower but I’m not sure if they’re safe or why I would even need to use it?