I'm going to guess this is still a young axolotl? It doesn't sound all that concerning to me, unless they're really swimming like they're in a panic and getting bruises or cuts from bumping into things. It sounds like my Katla when she was young. She used to swim right into the glass. Remember they don't see very well, so they need to memorize that there's a wall there! (I walked right into a screen door the other day, so I'm not one to point the finger, lol) I made sure she had swimming space in the tank so she wouldn't hurt herself on the decor. She eventually learned not to swim around too fast.
Aside from that, Katla was never a hider. She'll hide for brief periods of time if the tank is very crowded, but that's about it. As soon as there's movement outside the tank she'll walk up to the glass and watch. She also has a superstitious habit of walking up to a certain spot when she's hungry, because she's been fed there before. I feed them wherever they are, so it becomes a self-fulfilling prophecy. Maybe your new lotl thinks they're going to get fed if they walk up to the glass, or maybe they're just curious about what's going on out there!