The answer is that ants are not organisms, they are organs. The ant colony is the organism. It just happens to be made of parts that are not physically connected to each other.
Well, it turns out that humans are much like ants in this regard. A single human individual cannot reproduce. Even a single fertile couple cannot successfully reproduce in the wild (if you doubt this, watch a few episodes of Naked and Afraid). The minimum viable reproductive unit for homo sapiens is a tribe or a village.
This sort of organizational grouping is found at all of the levels of abstraction in life. Even your DNA is not really a unified whole, it's a bunch of genes that have glommed together in a cooperative effort to reproduce themselves, but it's not an organized or homogeneous effort. That's why you have freeloaders ("junk DNA") and defectors (cancer genes) who put their own interests above those of the group. What happens at the cellular and molecular level is really not so different from what happens in human societies. The presence of brains changes the dynamic, but not in any fundamental way. At the end of the day, it's all just self-replicating information looking for an ecological niche and a reproductive edge. The idea that human individuals are somehow special in this process is mostly a prejudice brought on by our particular point of view, namely, the fact that our thoughts reside in brains that are strongly bound to bodies. The ability to see beyond onesself can be both powerful and humbling.