口 on the left is a small square for parted lips, the indexing radical. It appears on characters built to spell borrowed sounds, here drinking-related loanwords like
咖啡 coffee and
咖喱 curry. The radical tells the reader the right side is pronounced, not analyzed for meaning.