Islam prohibits worshipping anyone other than Allah or any behavior that may resemble such actions. The prohibition or dislike of performing prayers at specific times should be understood in this context. These times coincide with the worship times of Zoroastrians.
The restriction on praying during these times aims to prevent Muslims from resembling fire-worshippers. This also helps in developing a distinct identity and worship consciousness among Muslims.