The joke is a word play on the word "thoughs", because "thoughts and prayers" is used commonly as a way to wish someone better without doing any action, but people often don't consider the word "thoughts" in the context of actual daily thoughts that one may have.