They're contextual. They're based on whatever Google thinks can make them most relevant. Traditionally, that's the content of the current page. So if you're reading a forum message that mentions cats, you might see ads about cats.