Pediatrics

A 1.5 year-old girl is admitted to Pediatric ward with cough, fever, and mild hypoxia. At the time of her admission, on CXR left upper lobe consolidation is seen. Staphylococcus aureus is seen on blood culture within 24 hours. Suddenly the child's condition acutely worsened over the past few minutes, with markedly increased work of breathing, increasing oxygen requirement, and hypotension. On examination there was decreased air entry in left hemithorax and hea sounds were more audible on the right side of chest as compared to left. What could be the possible reason?