On the algebraic compactness of some quotients of product groups