When it has more than one responsibility.
Let me quote Robert C. Martin's Clean Code here:
The first rule of classes is that they should be small. The second
rule of classes is that they should be smaller than that. ... With
functions we measured size by counting physical lines. With classes we
use a different measure. We count responsibilities. [Chapter 10, page 136]