Stellar formation

Why can material falling onto a protostar release energy even before sustained hydrogen fusion begins?