Because the sun is low on the horizon and sunlight passes through more atmosphere at sunset and sunrise than during the day. More atmosphere means more molecules to scatter the violet and blue light away from your eyes. Reflected light has longer wavelengths, longer wavelengths of light shade red, thus you get the pink in the sky.
credit: merfam
credit: joka2000
credit: Mikael Miettinen
credit: Care_SMC
credit: Satoru Kikuchi
credit: audreyjm529
credit: Jenah Crump Photography
credit: BineHerzog
credit: amandabhslater
credit: baurmurza
credit: I’m George
credit: rafaelpagliuca
credit: {photonista} Rachel Hamrick
credit: tamakisono