$p-value=Pr(E||H)$ where E is the "data at least as extreme as what was observed" event, and $H$ is the hypothesis, usually of the form "some set of the parameters are zero". I have used the double lines $||$ to indicate that it is not a conditional probability per se, rather a probability based on the the assumption that the null hypothesis is true.
You have not explicitly said with the null hypothesis was is both examples. If you take the time to carefully state exactly what the null hypothesis is in each case, you may find that it makes perfect sense for them to give different p-values. You may also find that the event $E$ is not the same in the two cases either. If the "extreme event" is different, then you would in general expect to see different p-values.
p-values are usually used to "reject" models rather than compare models. At least that's how I use them. A small p-value usually means (at least to me anyways) "there is a better explanation for the observed data than the null hypothesis". I usually take the size of this p-value to be a rough measure of "how much easier" such an explanation would be to find. For me, p-values of the size $0.4$ and $0.8$ just indicate that the data is fairly consistent with either model.
I'm not so sure that it says that the "binned" model is better than the "line" model. This is because there is no explicit comparison or reference to the other model made when either of these two p-values are calculated. The reason I say this is that, generally there is an implicit class of alternative hypothesis to which a p-value refers. If both models are in this implicit class when calculating the p-value based on the other, then it is does indicate that the binned model is better. But determining this implicit class is not always straight forward, unless the p-value is based on a sufficient statistic for the null hypothesis.
Age
as not been specified as an ordered one. $\endgroup$