Correct me if I'm wrong but I'm pretty sure this was suppose to give the baby good luck. It's more superstitious than religious.
Throwing a baby gives it good luck.