Does not sound like you have a problem with the battery as such cos if it turned the engine over then most likely it would have started, it can happen that when you get a hot engine and you then try to start it that it can have a "moment" where it refuses to start, unless this starts to happen all the time I would just put it down to one of those things that plague your every day motorcyclist and move on. Do the usual checks make sure the plug cap is secure and that fuel is flowing through to the engine see if the filler cap might need a clean, if the cap is blocked then it can starve the engine through vapour lock but I bet you find it's nothing to worry about.