Pancreatitis can come from many things, like drinking too much or having gallstones. Certain medicines, accidents, and viruses can cause it too. Bad habits like smoking or being too heavy can make it more likely.