Where the smell comes from
Naturally occurring sulfur in bedrock and organic material.
Sulfate-reducing bacteria that thrive in low-oxygen environments, including inside your water heater's anode rod.
If the smell only shows up on hot water, it's almost always the water heater — not the well.