Copyright covers literary, artistic, musical and dramatic works, including software. It arises automatically without registration, though registration provides useful evidence of ownership. It protects the expression of an idea, not the idea itself.
Why it matters: ownership does not always sit where people assume — see work made in the course of employment, and note that contractors usually retain copyright unless it is assigned in writing.