Male Peacocks change from being rather passive to immensely territorial during mating season. This is probably why it became hostile.
My neighbors raised Peafowl for over a decade as both food (meat) and feathers, which are rarher prized by clothier's and hobbiests.
Personally, I hate Peacocks; their mating calls go on all night long and will ultimately make everyone hate them.
Sincerely, listen to this and then imagine it repeating every 10-15 seconds literally all night long between April and September: