There are a few ways to template an object but none that I know of that can be done accidentally very easily.
Most likely the easiest way to do it accidently is to right click on the object and under the actions menu is an option to template and untemplate,maybe you did this ???
2 x Modeling Challenge Winner