You say what with in order to introduce the reasons for a particular situation, especially an undesirable one.
Maybe they are tired, what with all the sleep they're losing staying up night after night.
What with one thing and another, it was fairly late in the day when we returned to Shrewsbury.