I've been studying African American slavery at school, and it really does not make sense why slaves were whipped, tortured, and put in such harsh living conditions. I understand the whole racism thing, but isnt the whole purpose of having slaves is to increase production? Won't an injured slave decrease production of cotton, for example? It's common sense that if your workers are injured or sick, ur output literally decreases. Like how can u pick cotton if your entire back is scarred? If u put a bunch of people in a small ass shack with no plumbing, diseases and infections are bound to spread. Slaves cost money, right? If one of your slaves dies of disease, you literally have to buy a new slave?? How does that benefit anyone? Economically speaking, its literally a lose-lose situation.
If they used torture and punishments as an intimidation tactic, its really counterproductive in my opinion. well, i mean, the whole concept of slavery is dumb.
i can think of 3 major explanations that cover the questions you're asking. there are some scholars of slavery who argue for or against specific explanations, while others are more interested in comparing how parts of each one may be useful. you can decide which "make sense" for yourself:
the point of the violence is to enforce the power dynamic between slaves & slavemasters to keep the system going. given how terrible the situation is (especially the racialized, transatlantic version), you could reason, enslaved people would surely flee & resist en masse. the function of all that gratuitious violence - much of which was specifically justified as punishment for resistance - was to send the message that "no, you can't get away" & "you have to do what i tell you, end of story". there is a lot of debate about how successful this strategy was, though.
if a slavemaster was wealthy enough, this level of violence could actually appear more profitable. if you use force to make people produce more cash crops faster, you can sell more & earn more money. & given that, as you said, violence & disease were killing people at very high rates, a plantation owner or another slaveowner could reason that it would actually be cheaper to just buy new slaves rather than spend a bunch of time & energy trying to "treat them well" only for them to die or run away in a few years. again, there's room to argue how effective this approach was at maximizing profit, but it was definitely a popular one, particularly in the Caribbean. (also, if you're a slave trader, any excuse to buy & sell more people helps you make money, even if it doesn't necessarily help other slaveowners.)
there are some people who argue that effectively, you're right - it doesn't make sense. rather than being a "rational" attempt at social control (option 1) or making as much money as possible (option 2), the key aspect of transatlantic slavery is just a deep expression of antipathy (basically, hate) for black people. some of the things scholars use to support this explanation include:
so those are the 3 big explanations: enforcing social hierarchy, maximizing profit (even if it may not seem like it at first), & just straight-up malice towards black people for no sensible reason. as i said at the beginning, some people sign up to specific "schools of thought" while others employ whatever they find useful, but if you're curious about any of them i can share some more in-depth sources.