Anosmia is when a person loses the sense of smell. It can be caused by a head injury, certain chemicals, or can be congenital. There are other causes listed in this website. The way we can detect odors is by our olfactory cells in the nose which then send signals to the brain. When someone has lost their sense of smell it's because either something is blocking these nerve cells or they have been injured and can't send messages back to the brain.
The following video demonstrates how many people don't know what anosmia is or have never heard about it. They show two people who have anosmia, a teenager girl and a middle age man. The girl lost her sense of smell when she was a baby through a head injury. The man lost it due to being exposed to certain chemicals during a class. They mention that the taste is more appreciated and associated with the texture of the food.
Don't take your sense of smell for granted!