Snake encounter question

Hi, yesterday I was in the Lawson Loop park and a snake slithered right up to myself and kids while we were sitting on the floor playing. It was directly next to us when I noticed it and jumped up to run away (yes, yes I know we’re not meant to run from them.. However natural instinct kicked in as I got really scared) As I jumped up the snake slithered away into another direction.

My question is, are there friendly snakes in Canberra? It could have easily bitten one of us as it was close enough when I scared it by jumping but it slithered away instead.. Also would anybody know why it would have come to us in the first place?

Edit:

Thanks so much for all the replies everyone! Feeling much more educated on snake encounters now haha. Will keep my eyes peeled moving forward. 🐍