If this is a real story you heard, then my assumption is the man (and you) hasn't heard what is in the can of paint he didn't buy.
But if this is just a joke and not based on real events, then I'm going to guess the other can was filled with either cash or paint. : P
No one knows. I’ve always assumed it was cash though.