A protected purpose is something
such as criticism, comment, news reporting, teaching, scholarship, or research.
Parody is a subset of criticism or commentary, and thus parody works must direct commentary or criticism at the work. Just being a parody or funny is not a protected purpose. The leading case on the matter is Dr. Seuss Enterprises v. Penguin Books.