Environmental factors such as over exposure to the sun and air pollution can build up dirt and grime on the scalp leading to foul odour.
You have mentioned that your girlfriend is having the symptom of excessive sweating.