What was the purpose of using a two piece forestock to enclose the barrel as opposed to leaving the top of the barrel bare on early-mid 20th century rifles?

For shielding hands from heat. This was especially vital in hand-to-hand combat scenarios, where one might find themselves holding their rifle by the fore end and using it as a club.