If you shout to someone who is a long way away, you speak very loudly so that they can hear you.
'What are you doing down there?' he shouted to Robin.
If you speak very loudly to someone who is near to you, for example because you are angry with them, don't say that you 'shout to' them. Say that you shout at them.
Dad shouted at us for making a mess.