>2nd amendment was introduced to permit people to shoot tax collectors (i.e. the British)
The 2nd Amendment was introduced because the states were afraid a standing national army would give too much power to the Federal government, so the plan was to have individual states field their own militias instead. Also because the principles of the right to self defense were established in British common law at the time - but that has more to do with keeping cougars and vandals away than any abstract fears of tyranny.
You're right that it didn't really protect "peasants" - it mostly protected the interests of rich landowners. Which is, ironically, what Ben Franklin was actually arguing against with his often repeated (and misinterpreted) quote about those who trade a little liberty for safety deserving neither.