A phrase from a textbook:
"There being nothing else to do, we went to bed".
Why not "There was..." and what's the difference?