Steam uses lossy-compression algorithms whenever you snap a screenshot in Steam. This is done to reduce the space occupied by screenshots on Steam servers. That is the reason that the quality of screenshots gets diminished.