Sentence 2 is a polite offer. As such, it invites an affirmative response, and is thus more positive. It is quite typical to use "some" in a question that offers something.
Since "some" is typical in polite offers, using "any" tends to suggest that the person who is offering the pepper believes that a negative response is just as likely as (or possibly even m