I think you're misreading that paragraph. It is specifically saying the euphoria is not the _only_ reason that cats roll around in catnip.
However the sentence can simply be read in two ways. Both interpretations are equally valid.
I read it as qualifying the degree of functionality in the rolling behaviour. That is: the rolling behaviour is functional to a significant extent, but is not entirely functional.