Here is some historical context.
Macaulay introduced the duration concept as in the ‘duration of cash flows’ sense, in a way to measure the effective term of the loan. For the weights, he considered (or more like debated) alternatives, but then concluded to use present value. So Duration as per Macaulay is a present value weighted average of cash flows time. And to cast your mathematical sensitivity into this definition, you will need to divide it by the P, and multiply it by minus 1 to make it positive. Hence the $\frac{-1}{P}$. Note: in simple compounding, there is an extra adjustment because the derivative reduces the power of $1+y$ by one, so you will need to multiply it by $1+y$ to convert it to Macaulay Duration.
Later on, independently, Hicks amongst others developed the concept in the elasticity sense, which the economists define as:
$\frac{d \ln P}{d \ln \left(1+y\right)}=\frac{1+y}{P} \frac{dP}{dy}$
This is the same definition that one sees in the price elasticity of demand. Usually the economists add minus sign so that higher magnitude (say -4) means more responsiveness than a lower magnitude (say -2). The minus sign does not add much because in normal cases one knows the number will be negative, so ignoring it produces a more intuitive measure.
And it is easy to see that the Macaulay’s duration and the elasticity represent the same thing.
Note: this elasticity definition is in terms of simple compounding but you can adjust for the continuous compounding.