I recently read the proof here that direct limits are exact functors in the category of $R$-modules. In that proof, I don't see where Arturo is using the fact that we are working in a category of modules, but in this question we get an example showing that taking direct limits is not necessarily exact in an arbitrary category.
So where are we using that we work in a category of modules in the proof that direct limits are exact functors?