What's funny about the phrase "Why was Dumbo sad? He felt irrelephant."

The phrase "Why was Dumbo sad? He felt irrelephant" is funny because Dumbo is an elephant and that word sounds like irrelevant. The phrase is a pun.