Why is Camera2 API is such a bad state?

Looking at the messages in this forum, it is one complaint after another about bugs in Camera2 API.
For instance, the RAW mode seems to be broken on every phone.
If other mobile phone companies can manage to support Camera2 API, why can’t Samsung?