Goats can be good pets. BUT they are an awful lot of responsibility - for a start, if you go on holiday, you can't just send a goat to the kennels.
Presumably you'd go for a pygmy goat, in which case you'd need two wethers (castrated males) as they need company. They are very intelligent, and great climbers, so you have to think about keeping them in an enviroment which is very secure and safe for them.
You'll need to be registered as a smallholding with DEFRA, comply with animal movement restrictions (like keeping a movement book which you record every single time they go off your premises, and if there is a foot and mouth outbreak or other disease, you can't move them at all ).
You'd need to learn to trim their feet on a regular basis, and take them to be vaccinated and wormed.
And obviously they need feeding, watering and interaction twice a day, everyday.
But I love goats, and one day hope to have them again - but as I had goats at my parents from age 8 to 18 when I left home, and dad only got rid of his last ones a couple of years back, I am well aware of the downsides