Why does period blood and blood from being injured smell different?

I don’t go smelling my blood (especially period blood) but when I go to the bathroom on my period I hate the smell. Being a sporty kid when I was younger I would always get cuts and scrapes all over me. I would often suck my blood and move on, and since I sucked it, that blood didn’t smell bad? Why is that???