Nice game, and very typical for a beginner!
As others said, it’s better to focus on the center of the board in 9x9 Go than on the edges. The center is important in 9x9 Go. Controlling it can help you influence all sides and corners, giving you a strong position. Moves in the center also give you a good base for future moves.
Black lost because the 33 points Black made and defended weren’t enough to win, even after successfully invading. As Black, you need about 45 points to win a 9x9 game. So I suggest focusing on the center and trying to take a bigger area in your next games.