The generosity of hitbox detection is a known rule in game design, don't worry, you'll learn all those small details as you make more games. Here's a video explaining it (also check out the videos of that channel, they're very useful)