The pun in the phrase "This hospital is known for having a lot of patience" is a homophonic pun.
This is because the word "patience" (referring to the quality of being patient) sounds similar to "patients" (referring to people receiving medical care), creating a play on words based on sound.