It’s semantics. “Ape” isn’t actually a scientific category - so the term is a bit elastic. Some mean it as “all non-human members of the
hominidae family.” Others use “ape” as shorthand for the entire
hominidae family (easier to pronounce

); and that
explicitly includes chimpanzees, bonobos, gorillas, orangutans and humans. This conforms to the evolutionary family tree. Chimps, for example, are much closer cousins to humans than gorillas. So it would be odd for them to be in a group with more distant relatives while the closer one (us) is arbitrarily excluded.