Removable batteries vs un-removable ones

I have an HTC one m8 and the main feature that puzzled me was the integrated un-removable battery. I want to know why a mobile producers more and more focusing on making batteries un-removable. What are the advantages of such a battery on a mobile phone? I was just checking the new Samsung S6 and this producer also switched to un-removable battery.
