I think it depends on context. Mostly it is an comment expressi empathy, but it could be an offer.
For example if someone says to you, "you look like you could use a coffee," it suggests that you look tired and the person has noticed.
Are they handing you a coffee? Are they offering to get one with you? Are they just saying it to be nice? That will depend on context.