could either be your recent actions or overall honor rating
your reputation (honor meter) preceeds you. If you're known to be a dishonorable outlaw, the people will be suspicious of you. If you have a good reputation they will be friendly and shopkeepers will offer a discount
But even with a high honor rating, if you cause trouble around town the people in that town will remember your actions for awhile