This happends in the order you multiply the matrix, as a recomendation, you should multiply first the translate, then rotate and finaly the scale, that will help you to get the form you want, remember that matrix doesn't have commutativity.
I'll bring you and example
model = glm::translate(model, glm::vec3(-40.0f, -28.0f, 0.0f));
model = glm::rotate(model, glm::radians(-90.0f), glm::vec3(0.0f, 1.0f, 0.0f));
model = glm::scale(model, glm::vec3(0.02f));