Inherited from Proto-Slavic *žerbę. Morphologically ждребе (ždrebe) + -ец (-ec).
ждребец • (ždrebec) m (feminine ждребица)