what role does a prince have to be for guards to inform him first and not the king?

The guards would inform the prince first if he is the heir to the throne or next in line to rule. In such cases, the prince would be the next king and it is important to keep him informed of any important events or threats to ensure a smooth transition of power.