Cans protect the beer from light (thereby preventing "skunked" beer) and have a seal less prone to leaking over time than bottles.
What is it called when light damages beer that is not in a can?
"skunked" beer