Here's a different "motivation".
Let's have the idea that we are going to expand our sets of numbers using polynomials, so we model expanded sets of numbers using polynomials of various degrees.
Start with the integers, the degree zero polynomials. It's pretty easy to see which of these polynomials should be called the integers.
Next, we have degree one polynomials, $c_1 x + c_0$. Setting one of these equal to zero, we obtain the "number" $x = -c_0 / c_1$. These numbers are the rationals. (We don't have to worry about whether we have divided by zero because we know the polynomial has degree one, so the leading coefficient is not zero.) In this set, we find the integers when $g = \mathrm{gcd}(c_0,c_1)$, $\mathrm{sgn}(-c_0/c_1) = \mathrm{sgn}(-c_0)$, and $c_1 / g = 1$. (That is, when reduced to lowest terms and moving any negative sign from the denominator to the numerator, we have denominator $1$.) Since each rational is represented by infinitely many polynomials, the integers are those rationals that have a representation with leading coefficient $1$; i.e., are those that have a monic representation.
And so on, as we increase the degree (to quadratic polynomials for quadratic number fields, cubics for ...), we never have to worry about the leading coefficient being zero, each such number is represented by infinitely many polynomials, and the integers are those numbers that have a representation with leading coefficient $1$; i.e., are those that have a monic representation.
So the above describes all the algebraic numbers and algebraic integers. How do we pick out the ones in a particular number field. Notice that in your example, we are talking about those "with discriminant $-3$"? The discriminant for a quadratic polynomial $ax^2 + bx + c$ is $b^2 - 4ac$ and appears in the quadratic formula: $$ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \text{.} $$
Let's look at the number $17 - 3\sqrt{-3}$. It has minimal polynomial $x^2 - 34x + 316$ (so is an algebraic integer). The discriminant of this polynomial is $-108$ and we compute $\sqrt{-108} = 6 \sqrt{-3}$. So the discriminant has a square part (which became the $6$) and a "radical part", the $\sqrt{-3}$.
Notice that we got an even square part, so the "divide by $2$" in the quadratic formula cancels with a common factor of $2$ in $b$ and $6$. This suggests investigating then number $\frac{1}{2}(17 - 3\sqrt{-3})$ to see what happens when all these $2$s don't cancel out. (Notice we're working backwards here. Above, we took all the polynomials and sifted out the set with a discriminant has radical part $-3$. Here, we are pretending to not know which polynomials do this and are investigating one to see if it does.) \begin{align*} &x &: &&\frac{1}{2}(17 - 3\sqrt{-3}) \\ &\text{min. poly.} &: &&x^2 - 17x + 79 \\ &\text{discr.} &: &&-27 = -3 \cdot 3^2 \end{align*} This algebraic integer should also be included in $\Bbb{Z}[\sqrt{-3}]$.
So what are the polynomials we should be thinking about when we want to extend $\Bbb{Z}$ to include $\sqrt{-3}$? It's the polynomials whose discriminant is $-3d^2$ for $d \in \Bbb{Z}$ so the "square part" is $d^2$, the "radical part" is $-3$, and $x = \frac{1}{2a}(-b \pm d\sqrt{-3})$ (recalling that $a = 1$ for integers).
(So, if we had arrived at this point before you formulated the Question, a more natural question might have been "why don't all algebraic integers have the '$1/2$'?", for which ...)
When one works through the details of "which quadratic polynomials have such discriminants" (which work is present in other Answers), one obtains the characterization you recite, based on $D \pmod{4}$. The algebraic integers whose discriminants have the correct "radical part" either all have $b$ and $d$ even (cancelling the $2$ in the denominator) or don't (leaving the "$1/2$").