It is expected that people won't want to have a fun time with friends so soon after a family member has surgery if the surgery is serious.
They've been depressed and you're trying to cheer them up to speed up their recovery.