It is also dedicated to Horus since Egyptians thought that this was the place where the final battle between Horus and Seth (in the form of a crocodile) took place.
A temple was built in order to worship the final battle between Egyptian deities.