SourceTree does not access your Stack Overflow account, no.
I think you are talking about your avatar image:
The URL for this image is https://www.gravatar.com/avatar/c8b36f3a5e5efced29c9ebdf9e1a4276?s=128&d=identicon&r=PG
; it contains a hash of your email address, and some parameters to control size, usage and rating (you can use different avatars for different contexts).
This image is generated by Gravatar.com based on your email address. Stack Overflow is not the only site that uses this service. GitHub uses it too, for example. If you are using the same email address on Stack Overflow and on other services, then SourceTree is being given the same image by that service.
Note that your flair is something different; that is the image generated by Stack Overflow with your reputation and badges; this contains your avatar but is unique to Stack Overflow. Yours looks like:
although you can pick from a few themes, and there is a Stack Exchange network-wide variant that shows your total reputation across the network (for accounts with 200 points or more).