I am very new to the subject, so please forgive my very naïf question. I learned that there are some non-hamiltonian systems which can become hamiltonian, just by a change of coordinates. I was given the Susceptible-Infected-Removed (SIR) model as an example: \begin{cases} \frac{dS}{dt} = - \alpha SI \\ \frac{dI}{dt} = \alpha SI - \beta I \\ \frac{dR}{dt} = \beta I \end{cases}
with $\alpha$ and $\beta$ being real parameters.
This is clearly non-hamiltonian because it is associated with a vector field which has non zero divergence. However, by choosing $x= log(S)$ and $y= log(I)$, where $S$ and $I$ are the susceptible and infected respectively, the system becomes hamiltonian.
What I found really strange about this result is that I'm used at seeing quantities being preserved by a change of coordinates, while here the property of the system being hamiltonian clearly isn't intrisinc: is there something deeply conceptual that I'm missing about hamiltonian mechanics?