Modern 2x4s are meant as wall studs for home construction. An interior wall is 4" thick. Add a sheet of standard interior drywall to either side of the "4" dimension and you end up with a 4" wall. I don't remember why the 2" dimension is reduced, but I used to know that one as well. Similar logic.