As PrettyBubbles mentions I think it's mostly about taking care of yourself and looking out for others!
If someone says it to me in person, usually I assume something serious event has recently happened, so people want others to take extra care in being careful.